/* WooCommerce Products Grid Widget Styles */
.vtechst-woo-products-grid-wrapper {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 32px !important;
}

/* Category Filter Bar Styles */
.vtechst-woo-category-filter-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

.vtechst-woo-sorting label {
  margin-right: 6px !important;
  font-size: 14px !important;
  color: #888 !important;
}

/* Modal Styles */
.vtechst-woo-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999 !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

.vtechst-woo-modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vtechst-woo-modal-content {
  background: white !important;
  padding: 20px !important;
  border-radius: 8px !important;
  max-width: 500px !important;
  width: 90% !important;
  position: relative !important;
}

.vtechst-woo-modal-close {
  position: absolute !important;
  top: 10px !important;
  right: 15px !important;
  background: none !important;
  border: none !important;
  font-size: 24px !important;
  cursor: pointer !important;
  color: #666 !important;
}

.vtechst-woo-modal-backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}
.vtechst-woo-products-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}
.vtechst-woo-layout-grid .vtechst-woo-products-list {
  display: grid !important;
  gap: 24px !important;
}
.vtechst-woo-grid-cols-2 .vtechst-woo-products-list { grid-template-columns: repeat(2, 1fr) !important; }
.vtechst-woo-grid-cols-3 .vtechst-woo-products-list { grid-template-columns: repeat(3, 1fr) !important; }
.vtechst-woo-grid-cols-4 .vtechst-woo-products-list { grid-template-columns: repeat(4, 1fr) !important; }
.vtechst-woo-grid-cols-5 .vtechst-woo-products-list { grid-template-columns: repeat(5, 1fr) !important; }
.vtechst-woo-grid-cols-6 .vtechst-woo-products-list { grid-template-columns: repeat(6, 1fr) !important; }
@media (max-width: 1024px) {
  .vtechst-woo-grid-cols-6 .vtechst-woo-products-list,
  .vtechst-woo-grid-cols-5 .vtechst-woo-products-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .vtechst-woo-grid-cols-6 .vtechst-woo-products-list,
  .vtechst-woo-grid-cols-5 .vtechst-woo-products-list,
  .vtechst-woo-grid-cols-4 .vtechst-woo-products-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .vtechst-woo-grid-cols-6 .vtechst-woo-products-list,
  .vtechst-woo-grid-cols-5 .vtechst-woo-products-list,
  .vtechst-woo-grid-cols-4 .vtechst-woo-products-list,
  .vtechst-woo-grid-cols-3 .vtechst-woo-products-list,
  .vtechst-woo-grid-cols-2 .vtechst-woo-products-list { grid-template-columns: 1fr; }
}
.vtechst-woo-product-card {
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  min-width: 220px !important;
}
.vtechst-woo-badges {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
}
.vtechst-woo-badge {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  margin-right: 4px;
}
.vtechst-woo-badge-new { background: #1ec6b6; }
.vtechst-woo-badge-sale { background: #ff5a5f; }
.vtechst-woo-badge-percentage { background: #6fcf97; }
.vtechst-woo-product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 12px 0;
  min-height: 120px;
}
.vtechst-woo-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vtechst-woo-product-brand {
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
}
.vtechst-woo-product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.vtechst-woo-product-title a { color: #222; text-decoration: none; }
.vtechst-woo-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #f5a623;
}
.vtechst-woo-review-count {
  color: #888;
  font-size: 13px;
  margin-left: 2px;
}
.vtechst-woo-product-price {
  margin: 8px 0 4px 0;
  font-size: 16px;
  font-weight: 600;
}
.vtechst-woo-regular-price {
  text-decoration: line-through;
  color: #aaa;
  font-size: 14px;
  margin-right: 8px;
}
.vtechst-woo-sale-price {
  color: #222;
  font-weight: 700;
}
/* --- Buy Now Button & Quantity Selector Animation (Fixed) --- */
.vtechst-woo-product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
}
.vtechst-woo-buy-now {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 100%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1), background 0.2s;
  z-index: 1;
  display: block;
}
.vtechst-woo-quantity-selector {
  opacity: 0;
  pointer-events: none;
  max-width: 0;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), max-width 0.5s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  margin-left: 0;
  display: flex;
}
.vtechst-woo-product-card:hover .vtechst-woo-buy-now,
.vtechst-woo-product-card:focus-within .vtechst-woo-buy-now {
  width: 100px;
  max-width: 100px;
  flex: 0 0 140px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.vtechst-woo-product-card:hover .vtechst-woo-quantity-selector,
.vtechst-woo-product-card:focus-within .vtechst-woo-quantity-selector {
  opacity: 1;
  pointer-events: auto;
  max-width: 120px;
  margin-left: 8px;
}
.vtechst-woo-qty-input {
  width: 48px;
  height: 38px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 18px;
  margin: 0 4px;
  color: #222;
  outline: none;
  border-radius: 4px;
  box-sizing: border-box;
}
.vtechst-woo-qty-input:focus {
  background: #fff;
  border: 1px solid #1ec6b6;
}
.vtechst-woo-qty-plus, .vtechst-woo-qty-minus {
  background: none;
  border: none;
  font-size: 22px;
  color: #222;
  cursor: pointer;
  padding: 0 5px;
  height: 38px;
  line-height: 38px;
  border-radius: 4px;
  transition: background 0.2s;
}
.vtechst-woo-qty-plus:hover, .vtechst-woo-qty-minus:hover {
  background: #e0f7f3;
}
/* Remove number input spinners/arrows for all browsers */
.vtechst-woo-qty-input[type="number"]::-webkit-inner-spin-button,
.vtechst-woo-qty-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.vtechst-woo-qty-input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}
.vtechst-woo-category-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.vtechst-woo-sorting {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vtechst-woo-sort-select {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid #eee;
  background: #f5f5f5;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.vtechst-woo-sort-select:focus {
  outline: none;
  border-color: #1ec6b6;
}
@media (max-width: 600px) {
  .vtechst-woo-category-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .vtechst-woo-sorting {
    justify-content: flex-end;
  }
  .vtechst-woo-product-card:hover .vtechst-woo-buy-now,
  .vtechst-woo-product-card:focus-within .vtechst-woo-buy-now {
    width: 110px;
    max-width: 110px;
    flex: 0 0 110px;
  }
  .vtechst-woo-product-card:hover .vtechst-woo-quantity-selector,
  .vtechst-woo-product-card:focus-within .vtechst-woo-quantity-selector {
    max-width: 80px;
  }
  .vtechst-woo-qty-input {
    width: 36px;
    height: 32px;
    font-size: 16px;
  }
} 


/* Sorting dropdown styles for WooCommerce Products Grid Widget */
.vtechst-woo-category-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  .vtechst-woo-sorting {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .vtechst-woo-sort-select {
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid #eee;
    background: #f5f5f5;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .vtechst-woo-sort-select:focus {
    outline: none;
    border-color: #1ec6b6;
  }
  @media (max-width: 600px) {
    .vtechst-woo-category-filter-bar {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    .vtechst-woo-sorting {
      justify-content: flex-end;
    }
  } 

.vtechst-woo-no-qty-hover .vtechst-woo-buy-now {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}
.vtechst-woo-no-qty-hover .vtechst-woo-quantity-selector {
  display: none !important;
} 

/* Modal styles for WooCommerce variable product selection */
.vtechst-woo-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vtechst-woo-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
  transition: background 0.3s;
}
.vtechst-woo-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 32px 24px 24px 24px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: vtechstWooModalIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes vtechstWooModalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.vtechst-woo-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}
.vtechst-woo-modal-close:hover { color: #ff5a5f; }
.vtechst-woo-modal-image img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 18px;
  max-width: 180px;
  max-height: 180px;
}
.vtechst-woo-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}
.vtechst-woo-modal-attributes label {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  display: block;
}
.vtechst-woo-modal-attr {
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #eee;
  margin-left: 8px;
  margin-bottom: 8px;
  background: #f5f5f5;
}
.vtechst-woo-modal-price {
  font-size: 18px;
  font-weight: 600;
  color: #1ec6b6;
  margin: 10px 0 2px 0;
}
.vtechst-woo-modal-stock {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}
.vtechst-woo-modal-qty-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.vtechst-woo-modal-quantity {
  display: flex;
  align-items: center;
  gap: 0;
}
.vtechst-woo-modal-qty-input {
  width: 48px;
  height: 38px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 18px;
  margin: 0 4px;
  color: #222;
  outline: none;
  border-radius: 4px;
  box-sizing: border-box;
}
.vtechst-woo-modal-qty-input:focus {
  background: #fff;
  border: 1px solid #1ec6b6;
}
.vtechst-woo-modal-qty-plus, .vtechst-woo-modal-qty-minus {
  background: none;
  border: none;
  font-size: 22px;
  color: #222;
  cursor: pointer;
  padding: 0 8px;
  height: 38px;
  line-height: 38px;
  border-radius: 4px;
  transition: background 0.2s;
}
.vtechst-woo-modal-qty-plus:hover, .vtechst-woo-modal-qty-minus:hover {
  background: #e0f7f3;
}
.vtechst-woo-modal-addtocart {
  background: #1ec6b6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 10px;
}
.vtechst-woo-modal-addtocart:disabled { opacity: 0.7; cursor: not-allowed; }
.vtechst-woo-modal-addtocart:hover { background: #159e8c; }
@media (max-width: 600px) {
  .vtechst-woo-modal-content {
    min-width: 90vw;
    padding: 18px 6vw 18px 6vw;
  }
  .vtechst-woo-modal-image img {
    max-width: 120px;
    max-height: 120px;
  }
} 

.vtechst-woo-has-popup .vtechst-woo-buy-now {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}
.vtechst-woo-has-popup .vtechst-woo-quantity-selector {
  display: none !important;
} 

.vtechst-woo-pagination {
  display: flex;
}
.vtechst-woo-pagination-align-left { justify-content: flex-start !important; }
.vtechst-woo-pagination-align-center { justify-content: center !important; }
.vtechst-woo-pagination-align-right { justify-content: flex-end !important; }

.vtechst-woo-category-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vtechst-woo-cat-filter-btn {
  padding: 8px 16px;
  border: 1px solid #eee;
  background: #fff;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  white-space: nowrap;
}

.vtechst-woo-cat-filter-btn:hover,
.vtechst-woo-cat-filter-btn.active {
  background: #1ec6b6;
  color: #fff;
  border-color: #1ec6b6;
}

.vtechst-woo-page-btn {
  padding: 8px 12px;
  border: 1px solid #eee;
  background: #fff;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  min-width: 36px;
  text-align: center;
}

.vtechst-woo-page-btn:hover,
.vtechst-woo-page-btn.active {
  background: #1ec6b6;
  color: #fff;
  border-color: #1ec6b6;
}

/* Responsive Enhancements for WooCommerce Product Grid Widget */
@media (max-width: 900px) {
  .vtechst-woo-products-list {
    gap: 16px;
  }
  .vtechst-woo-product-card {
    padding: 10px;
  }
  .vtechst-woo-product-title {
    font-size: 15px;
  }
  .vtechst-woo-product-price {
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  .vtechst-woo-products-list {
    display: block !important;
  }
  .vtechst-woo-product-card {
    min-width: 0;
    margin-bottom: 18px;
    padding: 8px;
  }
  .vtechst-woo-product-image img {
    max-width: 100px;
    max-height: 100px;
  }
  .vtechst-woo-product-title {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .vtechst-woo-product-price {
    font-size: 14px;
  }
  .vtechst-woo-badges {
    top: 6px;
    left: 6px;
    right: 6px;
    font-size: 11px;
  }
  .vtechst-woo-modal-content {
    min-width: 95vw;
    padding: 10px 2vw 10px 2vw;
  }
  .vtechst-woo-modal-image img {
    max-width: 80px;
    max-height: 80px;
  }
  .vtechst-woo-modal-title {
    font-size: 16px;
  }
  .vtechst-woo-modal-price {
    font-size: 15px;
  }
  .vtechst-woo-modal-addtocart {
    padding: 10px 18px;
    font-size: 14px;
  }
  .vtechst-woo-modal-qty-input {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .vtechst-woo-modal-qty-plus, .vtechst-woo-modal-qty-minus {
    font-size: 16px;
    height: 28px;
    line-height: 28px;
    padding: 0 4px;
  }
  .vtechst-woo-category-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .vtechst-woo-category-filter {
    flex-wrap: wrap;
    gap: 6px !important;
  }
  .vtechst-woo-cat-filter-btn {
    font-size: 13px;
    padding: 6px 10px;
    min-width: 70px;
  }
  .vtechst-woo-sorting {
    justify-content: flex-end;
    gap: 6px;
  }
  .vtechst-woo-sort-select {
    font-size: 13px;
    padding: 5px 8px;
  }
  .vtechst-woo-pagination {
    gap: 6px !important;
  }
  .vtechst-woo-page-btn {
    font-size: 13px;
    padding: 5px 10px;
    min-width: 32px;
  }
} 