.arva-ssx { --arva-primary: #ed1c24; }

.arva-ssx { font-family: inherit; color: inherit; }
.arva-ssx * { font-family: inherit; box-sizing: border-box; }

.arva-ssx{
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  background: transparent;
}

/* FORM LAYOUT */
#arva-seller-search-form{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items: stretch !important;
  direction: rtl;
}

#arva-seller-search-form .arva-field{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display:flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

#arva-seller-search-form label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  min-height: 18px;
  line-height: 18px;
  color: rgba(0,0,0,0.75);
}

/* controls: unified height */
#arva-seller-search-form select,
#arva-seller-search-form input{
  width:100% !important;
  max-width:none !important;

  height: 44px !important;
  min-height: 44px !important;

  padding: 0 12px !important;
  border:1px solid rgba(0,0,0,0.18) !important;
  border-radius:10px !important;
  background:#fff !important;
  outline:none !important;
  line-height: 44px !important;
}

#arva-seller-search-form select:focus,
#arva-seller-search-form input:focus{
  border-color: var(--arva-primary) !important;
  box-shadow: 0 0 0 3px rgba(237,28,36,0.12) !important;
}

/* actions */
#arva-seller-search-form .arva-actions-inline{
  flex: 0 0 auto;
  align-self: flex-end;
  display:flex;
  gap:10px;
}

.arva-ssx .arva-btn{
  height: 44px;
  padding: 0 16px;
  border-radius:10px;
  cursor:pointer;
  border:1px solid var(--arva-primary);
  background: var(--arva-primary);
  color:#fff;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  user-select:none;
}

.arva-ssx .arva-btn-outline{
  background:#fff;
  color: var(--arva-primary);
}

/* hover states (fix clear button readability) */
.arva-ssx .arva-btn:hover{
  filter: none !important;
  background: #d81620;
  border-color: #d81620;
  color:#fff;
}
.arva-ssx .arva-btn-outline:hover{
  background: var(--arva-primary) !important;
  border-color: var(--arva-primary) !important;
  color:#fff !important;
}

.arva-ssx .arva-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
}

.arva-ssx .arva-btn .btn-spinner{
  width:16px; height:16px;
  border:2px solid rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,1);
  border-radius:999px;
  display:none;
  animation: arvaSpin .8s linear infinite;
}
.arva-ssx .arva-btn-outline .btn-spinner{
  border-color: rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,1);
}
.arva-ssx .arva-btn.is-loading .btn-spinner{ display:inline-block; }
.arva-ssx .arva-btn.is-loading .btn-text{ opacity: .92; }

@keyframes arvaSpin { to { transform: rotate(360deg); } }

/* suggest spinner */
.arva-suggest-spinner{
  position:absolute;
  left: 12px;
  top: 34px;
  width:16px; height:16px;
  border:2px solid rgba(0,0,0,0.18);
  border-top-color: rgba(0,0,0,0.55);
  border-radius:999px;
  display:none;
  animation: arvaSpin .8s linear infinite;
}

/* custom suggestion box (readability hardened) */
.arva-suggest-box{
  position:absolute;
  top: calc(44px + 26px);
  right: 0;
  left: 0;
  background:#fff;
  border:1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  overflow:auto;
  max-height: 220px;
  display:none;
  z-index: 9999;

  direction: rtl;
  text-align: right;
}

.arva-suggest-item{
  width:100%;
  text-align:right;
  border:0;
  background:#fff !important;
  padding: 11px 12px;
  cursor:pointer;

  color: #111 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.arva-suggest-item + .arva-suggest-item{
  border-top: 1px solid rgba(0,0,0,0.06);
}

.arva-suggest-item:hover{
  background: rgba(237,28,36,0.08) !important;
  color: #111 !important;
}

.arva-suggest-item:focus{
  outline:none;
  background: rgba(237,28,36,0.12) !important;
  color: #111 !important;
}

/* messages */
.arva-msg{
  margin-top:12px;
  padding:12px;
  border-radius:10px;
  background: rgba(237,28,36,0.06);
  border: 1px solid rgba(237,28,36,0.18);
  color: rgba(0,0,0,0.85);
}
.arva-msg:empty{
  display:none !important;
  padding:0 !important;
  border:0 !important;
  margin-top:0 !important;
}

.arva-meta{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
}

/* Desktop table */
.arva-table-wrap{ margin-top:12px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.arva-table{
  width:100%;
  border-collapse: collapse;
  min-width: 980px;
  background:#fff;
  border-radius: 12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.06);
}
.arva-table thead th{
  background: rgba(237,28,36,0.06);
  border-bottom: 2px solid var(--arva-primary);
  padding:12px 10px;
  text-align:right;
  white-space:nowrap;
  font-size:13px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.arva-table td{
  border-bottom:1px solid rgba(0,0,0,0.06);
  padding:12px 10px;
  text-align:right;
  vertical-align:top;
  font-size:13px;
}
.arva-table tbody tr:nth-child(even){ background: rgba(0,0,0,0.015); }
.arva-table tbody tr:hover{ background: rgba(237,28,36,0.04); }

/* Mobile cards */
.arva-mobile-cards{ margin-top:12px; }
.arva-cards-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.arva-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 12px;
  display:flex;
  flex-direction: column;
  height: 320px;
}

.arva-card-header{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 10px;
}

.arva-badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(237,28,36,0.08);
  border: 1px solid rgba(237,28,36,0.18);
  color:#111;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

.arva-card-title{
  font-weight:800;
  font-size:13px;
  line-height: 1.35;
  max-height: calc(1.35em * 2);
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.arva-card-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  flex: 1 1 auto;
  align-content: start;
}

.arva-field-item{ min-height: 44px; }

.arva-label{
  font-size:11px;
  color: rgba(0,0,0,0.55);
  margin-bottom: 3px;
}

.arva-value{
  font-size:12.5px;
  line-height:1.35;
  max-height: calc(1.35em * 2);
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  word-break: break-word;
}

.arva-value.one-line{
  max-height: 1.35em;
  -webkit-line-clamp:1;
}

.arva-card-footer{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.arva-footer-item{ min-width: 0; }

.arva-actions{
  margin-top:12px;
  display:flex;
  justify-content:center;
}

/* RESPONSIVE FIXES (mobile) */
@media (max-width: 768px){
  #arva-seller-search-form{
    flex-direction: column !important;
    gap: 10px !important;
  }
  #arva-seller-search-form .arva-field{
    width:100% !important;
    flex: 1 1 auto !important;
  }
  #arva-seller-search-form .arva-actions-inline{
    width: 100%;
    align-self: stretch;
  }
  #arva-seller-search-form .arva-actions-inline .arva-btn{
    width: 50%;
    padding: 0 10px;
  }
  .arva-desktop-table{ display:none; }
  .arva-suggest-box{
    top: calc(44px + 26px);
  }
}
@media (min-width: 769px){
  .arva-mobile-cards{ display:none !important; }
}

/* ===== Similar Products (No-Result) ===== */
#arva-similar-wrap{ margin-top: 12px; }

.arva-similar-block{
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.arva-similar-head{ margin-bottom: 10px; }
.arva-similar-h{ font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.arva-similar-sub{ font-size: 12px; opacity: .75; line-height: 1.7; }

.arva-similar-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.arva-similar-card{
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.arva-similar-imgwrap{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  border: 2px dashed #e6e6e6;
  padding: 14px;
  background: #fff;
}

.arva-similar-img{
  width: 100%;
  aspect-ratio: 1 / 1; /* square */
  object-fit: contain; /* no crop */
  background: #fff;
  border: 1px dashed rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 8px;
  display: block;
}

.arva-similar-img--ph{
  background: #f7f7f7;
}

.arva-similar-name{
  margin-top: 10px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.7em);
}

.arva-similar-meta{ margin: 6px 0 12px; }

.arva-similar-actions{
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.arva-similar-link{
  text-align: center;
  font-size: 12px;
  text-decoration: none;
  opacity: .85;
}
.arva-similar-link:hover{ opacity: 1; text-decoration: underline; }

@media (max-width: 1024px){
  .arva-similar-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .arva-similar-grid{ grid-template-columns: 1fr; }
}
