/**
 * Frontend Products Display Styles
 */

/* Admin-style layout (form + table) */

.products-frontend-wrap,
.products-frontend-wrap * {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
.products-frontend-wrap {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  margin: 0;
}
.products-frontend-wrap .pfw-wrapper {
  padding: 24px;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 0 20px 10px #f9fafd;
}

.products-frontend-admin .products-form-container > h2 {
  font-size: 16px;
  font-weight: 900;
  color: #000;
  line-height: 24px;
  margin: 0;
  margin-bottom: 20px;
}
/* Modal & Lightbox (ported from admin) */
.product_modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 99;
}
.product_modal .product_modal-inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #f0f0f1d6;
  padding-top: 10%;
}
.product_modal .product_modal-inner .product_modal-content {
  max-width: 600px;
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.product_modal .product_modal-inner .product_modal-content > button {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 0;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 1;
  cursor: pointer;
  outline: 0;
  border: 0;
  box-shadow: none;
}
.product_modal .product_modal-inner .product_modal-content > button svg {
  width: 15px;
  height: 15px;
}
.product_modal .product_modal-inner .product_modal-content .pmi-title {
  font-size: 16px;
  font-weight: 900;
  color: #000;
  line-height: 24px;
  margin: 0;
  margin-bottom: 8px;
}
.product_modal .product_modal-inner .product_modal-content .pmi-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #2c3338;
}
.product_modal .product_modal-wrapper {
  max-width: 900px;
  width: 100%;
  position: relative;
}
.product_modal_pictures .product_modal-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  gap: 20px;
  position: relative;
}
.product_modal .product_modal-wrapper > button {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 0;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 1;
  cursor: pointer;
}
.product_modal .product_modal-wrapper > button svg {
  width: 15px;
  height: 15px;
}
.product_modal_pictures .product_modal-grid .product_modal-image-item {
  width: 200px;
  box-sizing: border-box;
  border: 1px solid #edeef1;
  border-radius: 4px;
  position: relative;
}
.product_modal_pictures .product_modal-grid .product_modal-image-caption {
  font-size: 14px;
  line-height: 22px;
  color: #2c3338;
  font-weight: 500;
  text-align: center;
  padding: 6px;
  border-top: 1px solid #edeef1;
}
.product_modal_pictures .product_modal-grid .product_modal-image-item img {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  display: block;
  object-fit: contain;
  height: 200px;
  cursor: zoom-in;
}
.products-modal-open {
  overflow: hidden !important;
}
.product-lightbox-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000d9;
}
.product-lightbox-overlay .product-lightbox-content {
  max-width: 700px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  position: relative;
}
.product-lightbox-overlay .product-lightbox-content .product-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 0;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 1;
  cursor: pointer;
}
.product-lightbox-overlay
  .product-lightbox-content
  .product-lightbox-close
  svg {
  width: 15px;
  height: 15px;
}
.product-lightbox-overlay .product-lightbox-content > img {
  width: 100%;
  height: 600px;
  box-sizing: border-box;
  object-fit: contain;
  display: block;
  order: -1;
}
.product-lightbox-overlay .product-lightbox-content .product-lightbox-counter {
  flex: 1;
  text-align: left;
  order: -1;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.product-lightbox-overlay
  .product-lightbox-content
  button.product-lightbox-nav {
  width: 30px;
  height: 30px;
  border: 1px solid #edeef1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  cursor: pointer;
  color: #000;
}
.product-lightbox-overlay
  .product-lightbox-content
  button.product-lightbox-nav
  svg {
  width: 20px;
  height: 20px;
}

.products-frontend-wrap .pfw-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.products-frontend-wrap .pfw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.products-frontend-wrap .pfw-head .pfwh-title {
  flex: 1;
  font-size: 32px;
  font-weight: 600;
  line-height: 48px;
  color: #000;
  padding-top: 15px;
}
.products-frontend-wrap .pfw-head .pfwh-img {
  display: flex;
}
.products-frontend-wrap .pfw-head .pfwh-img img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.products-frontend-admin .products-two-column {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.products-list-container-main {
  margin-top: 50px;
}

.products-frontend-admin .products-list-container {
  width: 100%;
  overflow: auto;
}

.products-frontend-admin .products-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.products-frontend-admin .products-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.products-frontend-admin .products-form-field.pff-hs-code {
  display: none;
}

.products-frontend-admin .products-form-fields .products-form-fields-3-columns {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.products-frontend-admin
  .products-form-fields
  .products-form-fields-3-columns
  .products-form-field {
  flex: 1;
}

.products-frontend-admin .products-form-fields .products-form-fields-4-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.products-frontend-admin
  .products-form-fields
  .products-form-fields-4-columns
  .products-form-field {
  flex: 1;
}

.products-frontend-admin .products-form-field label {
  font-size: 14px;
  font-weight: 500;
  color: #1d2327;
  letter-spacing: 0.4px;
  line-height: 22px;
}

.products-frontend-admin .products-form-field .required {
  color: #d63638;
  font-weight: 600;
}

.products-frontend-admin .products-form-field input,
.products-frontend-admin .products-form-field select {
  padding: 8px 12px;
  border: 1px solid #edeef1;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  font-weight: 500;
  line-height: 22px;
  outline: 0;
  margin: 0;
  appearance: none;
  color: #000;
}
.products-frontend-admin .products-form-field input.hs_code_display {
  pointer-events: none;
  background-color: #edeef1;
}
.products-frontend-admin .products-form-field select {
  cursor: pointer;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path d="M5 7.5L10 12.5L15 7.5" stroke="rgb(113 118 128)" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round" /></svg>');
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: right 10px center;
  padding-right: 35px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
}

.products-frontend-admin
  .products-form-field
  input[type="number"]::-webkit-outer-spin-button,
.products-frontend-admin
  .products-form-field
  input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.products-frontend-admin .products-form-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.products-frontend-admin .products-form-field .description {
  font-size: 12px;
  color: #646970;
  margin: 0;
  font-style: italic;
  font-weight: 400;
}

.products-frontend-admin .products-form-field .product_btns {
  display: flex;
  gap: 10px;
}

.products-frontend-admin .products-form-field .product_btns button {
  background-color: transparent;
  border: 0;
  outline: 0;
  min-height: auto;
  padding: 5px;
  line-height: normal;
  font-size: 12px;
  font-weight: 500;
  color: #646970;
  box-shadow: none;
  cursor: pointer;
}

.products-frontend-admin .products-submit-buttons {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 1;
  gap: 20px;
  padding-top: 26px;
}

.products-frontend-admin .products-submit-buttons .product-submit-button {
  padding: 8px 15px;
  border: 1px solid #edeef1;
  background-color: transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  width: auto;
  outline: 0;
  cursor: pointer;
}

.products-frontend-admin .products-submit-buttons .product-cancel-button {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 5px;
  background-color: transparent;
  margin-top: 8px;
  cursor: pointer;
  outline: 0;
}

.products-frontend-admin .products-list-header {
  margin-bottom: 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.products-frontend-admin .products-list-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  line-height: 30px;
}

.products-frontend-admin .products-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  min-width: 1230px;
}

.products-frontend-admin .products-list-table thead th {
  padding: 15px 10px;
  text-align: left;
  font-size: 16px;
  font-weight: 900;
  line-height: 24px;
  vertical-align: middle;
  border-bottom: 1px solid #dfdfdf;
}

.products-frontend-admin .products-list-table tbody td {
  padding: 15px 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  border-bottom: 1px solid #dfdfdf;
  vertical-align: middle;
}

.products-frontend-admin .products-action-buttons {
  display: flex;
  gap: 15px;
}

.products-frontend-admin .products-action-buttons .button-small {
  display: flex;
  background-color: transparent;
  outline: 0;
}
.products-frontend-admin .products-action-buttons .button-small svg {
  width: 22px;
  height: 22px;
}
.products-frontend-admin .products-action-buttons .pab-edit {
  color: #000;
}
.products-frontend-admin .products-action-buttons .pab-delete {
  color: #d63638;
}
.products-frontend-admin .products-empty-state {
  text-align: center;
  padding: 20px;
  border: 1px solid #edeef1;
  border-radius: 4px;
}
.products-frontend-admin .products-empty-state p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  color: #000;
}

.products-frontend-admin .products-pagination {
  margin-top: 15px;
  padding: 15px;
  background-color: #f6f8fc;
  border-radius: 4px;
  min-width: 1230px;
}

.products-frontend-admin .products-pagination-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.products-frontend-admin .products-pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.products-frontend-admin .products-pagination .pagination-number,
.products-frontend-admin .products-pagination .pagination-next,
.products-frontend-admin .products-pagination .pagination-prev {
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #dcdcde;
  background: #fff;
  color: #2c3338;
  font-size: 13px;
}

.products-frontend-admin
  .products-pagination
  .pagination-number:not(.pagination-current):hover {
  background: #f0f0f1;
  border-color: #8c8f94;
}

.products-frontend-admin .products-pagination .pagination-current {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.products-frontend-admin .products-pagination .pagination-dots {
  padding: 6px 4px;
  color: #646970;
}

.products-frontend-admin .products-pagination-info {
  margin-left: auto;
  font-size: 14px;
  color: #000;
  font-weight: 400;
}

.products-frontend-message {
  padding: 15px 20px;
  border-left: 4px solid;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 20px;
}

.products-frontend-message.products-frontend-success {
  background: #ecf7ed;
  border-color: #00a32a;
  color: #1e4620;
}

.products-frontend-message.products-frontend-error {
  background: #fcf0f1;
  border-color: #d63638;
  color: #721c24;
}

/* AJAX Loading States */
#products-list-container {
  transition: opacity 0.3s ease;
  min-height: 200px;
}

#products-list-container.loading {
  opacity: 0.5;
  position: relative;
}

#products-list-container.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2271b1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.products-ajax-pagination {
  cursor: pointer;
}

/* Search Form */
.products-frontend-search {
  margin-bottom: 30px;
}

.products-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.products-search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 400px;
  width: 100%;
}

.products-search-input {
  flex: 1;
  padding: 12px 12px;
  border: 1px solid #edeef1;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  font-weight: 500;
  line-height: 18px;
  outline: 0;
  margin: 0;
  appearance: none;
  color: #000;
}

.products-search-button {
  padding: 12px 20px;
  border: 1px solid #edeef1;
  background-color: transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  width: auto;
  outline: 0;
  cursor: pointer;
  color: #000;
}
.products-clear-button {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 5px;
  background-color: transparent;
  outline: 0;
  cursor: pointer;
}
/* Products Grid */
.products-frontend-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .products-frontend-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-frontend-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Product Item */
.products-frontend-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.2s;
}

.products-frontend-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.products-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f1;
}

.products-item-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1d2327;
  flex: 1;
}

.products-item-number {
  background: #f0f0f1;
  color: #50575e;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 10px;
}

.products-item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.products-item-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.products-item-label {
  font-weight: 600;
  color: #50575e;
  font-size: 14px;
}

.products-item-value {
  color: #1d2327;
  font-size: 14px;
}

.products-hs-code {
  background: #f0f6fc;
  color: #0969da;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-family: monospace;
}

/* Empty State */
.products-frontend-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.products-frontend-empty p {
  margin: 0;
  font-size: 16px;
  color: #646970;
}

/* Pagination */
.products-frontend-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.products-pagination-button {
  padding: 8px 16px;
  background: #fff;
  color: #2271b1;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.products-pagination-button:hover {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.products-pagination-number {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  color: #2271b1;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
  transition: all 0.2s;
}

.products-pagination-number:hover {
  background: #f0f6fc;
  border-color: #2271b1;
}

.products-pagination-number.products-pagination-current {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
  font-weight: 600;
}

.products-pagination-dots {
  padding: 8px 4px;
  color: #646970;
}

@media (max-width: 767.98px) {
  .products-frontend-pagination {
    flex-direction: column;
  }

  .products-search-box {
    flex-direction: column;
  }

  .products-search-button,
  .products-clear-button {
    width: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .products-frontend-admin .products-submit-buttons {
    flex: unset;
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1023.98px) {
  .products-frontend-admin
    .products-form-fields
    .products-form-fields-4-columns
    .products-form-field {
    flex: unset;
    width: calc(33.33% - 14px);
  }
  .products-frontend-admin
    .products-form-fields
    .products-form-fields-4-columns
    .products-form-field.pff-hs-code {
    flex: unset;
    width: calc(50% - 10px);
  }

  .products-frontend-admin .products-submit-buttons {
    flex: unset;
    width: calc(50% - 10px);
  }
}

@media (max-width: 767.98px) {
  .products-frontend-admin
    .products-form-fields
    .products-form-fields-4-columns
    .products-form-field,
  .products-frontend-admin
    .products-form-fields
    .products-form-fields-4-columns
    .products-form-field.pff-hs-code,
  .products-frontend-admin .products-submit-buttons,
  .products-frontend-admin
    .products-form-fields
    .products-form-fields-3-columns
    .products-form-field {
    flex: unset;
    width: 100%;
  }
  .products-frontend-admin .products-submit-buttons {
    padding: 0;
  }
}

.product-hover-preview {
  position: absolute;
  z-index: 9999999999;
  background: #fff;
  border: 1px solid #edeef1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 12px 14px;
  width: 500px;
  display: none;
  color: #1d2327;
}

.product-hover-preview .php-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.product-hover-preview .php-wrapper .php-col1,
.product-hover-preview .php-wrapper .php-col2 {
  width: calc(50% - 7px);
}

.product-hover-preview .php-title {
  font-size: 16px;
  font-weight: 900;
  color: #000;
  line-height: 24px;
  margin: 0;
  margin-bottom: 8px;
}

.product-hover-preview .php-desc {
  font-size: 14px;
  font-weight: 500;
  color: #1d2327;
  letter-spacing: 0.4px;
  line-height: 22px;
}

.product-hover-preview .php-image {
  position: relative;
  display: none;
  border: 1px solid #f9f9fb;
  border-radius: 8px;
  overflow: hidden;
}

.product-hover-preview .php-image img {
  width: 100%;
  object-fit: contain;
  display: block;
  height: 183px;
  object-position: center;
}
.product-hover-preview .php-cap {
  font-size: 12px;
  font-weight: 500;
  color: #1d2327;
  line-height: 18px;
  margin-top: 5px;
}
.product-hover-preview .php-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: absolute;
  left: 4px;
  right: 4px;
  top: calc(50% - 14px);
}
.product-hover-preview .php-nav button {
  background: #fff;
  border: 0;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 10px;
}
.product-hover-preview .php-nav .php-count {
  display: none;
}
.product-hover-bridge {
  position: absolute;
  display: none;
}

/* custom select */
.products-native-select-hidden {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.products-custom-select {
  position: relative;
}
.pcs-button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #edeef1;
  border-radius: 4px;
  background: #fff;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  outline: 0;
}
.pcs-button span {
  flex: 1;
  color: #2c3338;
}
.pcs-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6c7781;
}
.pcs-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #edeef1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  max-height: 240px;
  overflow: auto;
  z-index: 9998;
  display: none;
}
.pcs-item {
  padding: 8px 10px;
  cursor: pointer;
  color: #2c3338;
  font-size: 14px;
  width: 100%;
  font-weight: 500;
  line-height: 22px;
}
.pcs-item:hover {
  background: #f0f6ff;
}
.pcs-item.pcs-active {
  background: #e2e8f0;
  font-weight: 600;
}

.product-hover-preview .php-col2:has(.php-image[style="display: none;"]) {
  display: none;
}

.product-hover-preview:has(.php-image[style="display: none;"]) {
  width: 250px;
}

.product-hover-preview:has(.php-image[style="display: none;"]) .php-col1 {
  width: 100%;
}

.products-frontend-admin .products-list-table .plt-hs-code {
  display: none;
}

@media (max-width: 1279.98px) {
  .product-hover-preview {
    width: 250px;
  }
  .product-hover-preview .php-wrapper .php-col1,
  .product-hover-preview .php-wrapper .php-col2 {
    width: 100%;
  }
  .product-hover-preview .php-desc {
    max-height: 150px;
    overflow: auto;
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  .product-hover-preview {
    display: none !important;
  }
}
