body{
  margin:0;
  font-family:'Inter',Arial,sans-serif;
  background:#f6f6f6;
  color:#111;
}

a{
  color:inherit;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:16px;
}

.topbar{
  background:#fff;
  border-bottom:1px solid #ececec;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.brand img{
  height:38px;
  width:auto;
  object-fit:contain;
  display:block;
}

.brand,
.market-brand,
.market-logo{
  font-size:0;
  line-height:0;
}

.market-brand img,
.market-logo img{
  display:block;
}

.seller-auth-header .topbar-inner{
  padding:14px 16px;
  flex-direction:row;
  align-items:center;
  gap:12px;
}

.seller-auth-header .brand{
  margin:0;
  padding:0;
}

.seller-auth-header .brand img{
  height:32px;
  width:auto;
  margin:0;
  padding:0;
}

.section{
  padding:18px 0 32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid transparent;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  box-sizing:border-box;
}

.btn.red,
.btn.danger{
  background:#ef3d2f;
  color:#fff;
  border-color:#ef3d2f;
}

.btn.red:hover,
.btn.danger:hover{
  background:#d93628;
  border-color:#d93628;
}

.product-wa-btn.btn-green,
a.btn-green.product-wa-btn,
.product.product-v2 .product-wa-btn{
  background:#25D366;
  border-color:#25D366;
  color:#fff;
}

.product-wa-btn.btn-green:hover,
a.btn-green.product-wa-btn:hover,
.product.product-v2 .product-wa-btn:hover{
  background:#20bd5a;
  border-color:#20bd5a;
}

.btn-green{
  background:#ef3d2f;
  color:#fff;
  border-color:#ef3d2f;
}

.btn-green:hover{
  background:#d93628;
  border-color:#d93628;
}

.btn.outline{
  background:#fff;
  color:#111;
  border-color:#ddd;
}

.btn.outline:hover{
  background:#f3f4f6;
}

.btn:hover{
  transform:translateY(-1px);
}

.small-btn{
  min-height:36px;
  padding:0 12px;
  font-size:13px;
  border-radius:10px;
}

.dashboard-subtitle{
  margin:0;
  color:#666;
  font-size:15px;
}

/* Legacy product grid: seller profile & product detail sections only.
   Catalog homepage (.products / .product-v2) is styled in market-catalog.css. */

.detail-section-card .products{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:18px;
}

.detail-section-card .product{
  background:#fff;
  border:1px solid #ededed;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
  display:flex;
  flex-direction:column;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

.detail-section-card .product > a{
  display:block;
  text-decoration:none;
  color:#111;
  width:100%;
  height:150px;
  overflow:hidden;
}

.detail-section-card .product img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  background:#fff;
  display:block;
  padding:10px;
  box-sizing:border-box;
  border-bottom:1px solid #f1f1f1;
}

.detail-section-card .product-seller{
  color:#666;
  font-size:14px;
  line-height:1.35;
  padding:0 10px;
  margin-top:8px;
}

.detail-section-card .product-price{
  color:#ef3d2f;
  font-size:20px;
  font-weight:800;
  padding:0 10px;
  margin-top:8px;
}

.accent{
  background:#fff0f0;
  border:1px solid #ffd7d2;
  border-radius:18px;
  padding:22px;
}

.accent h3{
  margin:0 0 8px;
  font-size:22px;
}

.accent p{
  margin:0;
  color:#555;
  font-size:15px;
}

.seller-page-card{
  max-width:560px;
  margin:34px auto;
  background:#fff;
  border:1px solid #ededed;
  border-radius:18px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.seller-page-card h1,
.seller-page-card h2{
  margin:0 0 16px;
  font-size:26px;
  line-height:1.15;
}

.seller-form p{
  margin:0 0 14px;
}

.seller-form label{
  display:block;
  font-weight:800;
  margin-bottom:6px;
}

.seller-form input,
.seller-form select,
.seller-form textarea{
  width:100%;
  min-height:44px;
  border:1px solid #ddd;
  border-radius:12px;
  padding:0 12px;
  font-size:15px;
  font-family:inherit;
  box-sizing:border-box;
  background:#fff;
}

.seller-form textarea{
  min-height:110px;
  padding:12px;
  resize:vertical;
}

.seller-form input[type="file"]{
  padding:10px 12px;
  height:auto;
}

.seller-form input[type="checkbox"]{
  width:auto;
  min-height:auto;
  margin-right:8px;
}

.seller-form-show-password{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  font-size:14px;
  font-weight:500;
  color:#555;
  cursor:pointer;
}

.seller-form-show-password input[type="checkbox"]{
  width:16px;
  height:16px;
  min-height:16px;
  margin:0;
  accent-color:#ef3d2f;
}

.seller-form-remember{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  font-size:14px;
  font-weight:500;
  color:#555;
  cursor:pointer;
}

.seller-form-remember input[type="checkbox"]{
  width:16px;
  height:16px;
  min-height:16px;
  margin:0;
  accent-color:#ef3d2f;
}

.seller-form button,
.seller-form .btn{
  margin-top:6px;
}

.seller-form-section{
  margin:20px 0 8px;
  padding-top:18px;
  border-top:1px solid #ececec;
}

.seller-form-section h3{
  margin:0 0 6px;
  font-size:16px;
  font-weight:800;
  color:#111;
}

.seller-form-section-hint{
  margin:0 0 14px !important;
  font-size:13px !important;
  color:#64748b !important;
}

.checkbox-group{
  display:grid;
  gap:8px;
  margin:8px 0 14px;
}

.checkbox-group label{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}

.checkbox-group input{
  width:auto;
  min-height:auto;
}

.seller-form .checkbox-group{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
}

.seller-form .checkbox-group label{
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid #e5e5e5;
  border-radius:10px;
  background:#fff;
  font-size:14px;
  min-width:0;
}

.seller-form .checkbox-group label input{
  flex-shrink:0;
  margin:0;
}

.form-error{
  background:#fef2f2;
  border:1px solid #fecaca;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:16px;
  color:#991b1b;
  font-size:14px;
  line-height:1.45;
}

.form-error strong{
  display:block;
  margin-bottom:6px;
}

.current-image-box img{
  width:250px;
  height:250px;
  max-width:100%;
  object-fit:contain;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:12px;
  padding:8px;
  display:block;
  margin-top:10px;
}

.form-action-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.seller-profile-page{
  max-width:800px;
  margin:0 auto;
}

.seller-back-link{
  display:inline-flex;
  margin-top:20px;
  margin-bottom:14px;
  color:#475569;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}

.seller-back-link:hover{
  text-decoration:underline;
}

.seller-profile-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:22px;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.seller-profile-head{
  display:block;
  margin-bottom:22px;
}

.seller-profile-title,
.seller-profile-title-main{
  display:block;
  margin:0 0 6px;
  color:#334155;
  font-size:32px;
  line-height:1.1;
  font-weight:800;
}

.seller-profile-subtitle{
  display:block;
  margin:0;
  color:#64748b;
  font-size:15px;
}

.seller-profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.seller-profile-box{
  background:#f8fafc;
  border:1px solid #eef2f7;
  border-radius:16px;
  padding:16px;
}

.seller-profile-box.full{
  grid-column:1 / -1;
}

.seller-profile-box-title{
  margin:0 0 12px;
  font-size:16px;
  font-weight:900;
}

.seller-profile-row{
  margin-bottom:10px;
}

.seller-profile-row:last-child{
  margin-bottom:0;
}

.seller-profile-label{
  color:#64748b;
  font-size:13px;
  margin-bottom:3px;
}

.seller-profile-value{
  color:#111827;
  font-size:16px;
  font-weight:800;
  line-height:1.35;
}

.seller-profile-box.full .seller-profile-value{
  font-weight:500;
  line-height:1.6;
}

.seller-profile-placeholder{
  color:#94a3b8;
  font-size:14px;
  line-height:1.45;
}

.seller-profile-add-link{
  display:block;
  color:#2563eb;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  margin-bottom:8px;
  transition:.2s;
}

.seller-profile-add-link:hover{
  color:#ef3d2f;
}

.seller-profile-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:20px;
}

.seller-profile-delete{
  margin-left:auto;
  color:#94a3b8;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:.2s;
}

.seller-profile-delete:hover{
  color:#ef3d2f;
}

/* Public seller profile */
.public-seller-page{
  position:relative;
}

.seller-cover-banner{
  width:100%;
  height:160px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 45%,#334155 100%);
}

.public-seller-section{
  padding-top:0;
}

.public-seller-container{
  max-width:1200px;
}

.public-seller-profile-card,
.seller-profile-card.public-seller-profile-card{
  width:100%;
  margin:-52px auto 24px;
  padding:24px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 12px 32px rgba(15,23,42,.08);
  box-sizing:border-box;
}

.seller-profile-top-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.seller-profile-main{
  display:flex;
  gap:18px;
  align-items:flex-start;
  min-width:0;
}

.seller-profile-logo-lg.public-seller-logo{
  width:120px;
  height:120px;
  border-radius:50%;
  border:1px solid #eee;
  background-color:#ffffff !important;
  overflow:hidden;
  flex-shrink:0;
}

.seller-profile-identity{
  flex:1;
  min-width:0;
}

.seller-profile-identity h1{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  color:#111;
}

.seller-profile-city{
  margin:0 0 10px;
  color:#475569;
  font-size:15px;
  line-height:1.4;
}

.seller-profile-aside{
  min-width:0;
}

.seller-trust-badges{
  display:grid;
  gap:10px;
}

.seller-trust-badge{
  padding:12px 14px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#1e293b;
  font-size:14px;
  font-weight:600;
  line-height:1.35;
}

.public-seller-card{
  max-width:820px;
  margin:0 auto 24px;
}

.public-seller-header{
  display:flex;
  gap:18px;
  align-items:flex-start;
}

.public-seller-logo{
  width:110px;
  height:110px;
  border-radius:50%;
  border:1px solid #eee;
  background-color:#ffffff !important;
  overflow:hidden;
  flex-shrink:0;
}

.public-seller-logo img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  padding:12px !important;
  box-sizing:border-box !important;
}

.public-seller-info{
  flex:1;
  min-width:0;
}

.public-seller-info h1{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  color:#111;
}

.public-seller-meta{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#444;
  font-size:15px;
  line-height:1.4;
  margin-bottom:10px;
}

.public-seller-description{
  margin:18px 0 0;
  line-height:1.6;
  color:#555;
  font-size:15px;
}

.contacts-box.seller-contacts-grid{
  margin-top:18px;
  padding:16px;
  border-radius:8px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  display:grid;
  gap:14px;
}

.seller-contact-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.seller-contact-icon{
  flex-shrink:0;
  width:22px;
  font-size:16px;
  line-height:1.4;
  color:#94a3b8;
  text-align:center;
}

.seller-contact-body{
  min-width:0;
  flex:1;
}

.seller-contact-label{
  font-size:12px;
  font-weight:700;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin-bottom:4px;
}

.seller-contact-value{
  font-size:14px;
  line-height:1.5;
  color:#1e293b;
}

.seller-contact-phones{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.seller-contact-phones a{
  color:#0066cc;
  text-decoration:none;
  font-weight:600;
}

.seller-contact-phones a:hover{
  text-decoration:underline;
}

.seller-contact-wa-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:8px;
  background:#25D366 !important;
  color:#fff !important;
  font-size:13px;
  font-weight:700;
  text-decoration:none !important;
}

.seller-contact-wa-btn:hover{
  background:#20bd5a !important;
  text-decoration:none !important;
}

.public-seller-products{
  margin-top:12px;
}

.public-seller-products-toolbar{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:22px;
  padding:18px;
  background:#fafbfc;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
}

.public-seller-products-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
}

.public-seller-products-head h2{
  margin:0;
  font-size:24px;
  line-height:1.2;
  font-weight:800;
  color:#111827;
}

.public-seller-count-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 12px;
  border-radius:999px;
  background:#eef2f7;
  color:#64748b;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}

.public-seller-search-form{
  width:100%;
  margin:0;
}

.public-seller-input-group{
  display:flex;
  align-items:stretch;
  width:100%;
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:12px;
  overflow:hidden;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.public-seller-input-group:focus-within{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.public-seller-input-group input[type="text"]{
  flex:1;
  min-width:0;
  height:44px;
  padding:0 14px;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  color:#111827;
  box-sizing:border-box;
}

.public-seller-input-group input[type="text"]::placeholder{
  color:#9ca3af;
}

.public-seller-search-btn{
  flex-shrink:0;
  height:44px;
  padding:0 22px;
  border:none;
  background:#1e293b;
  color:#fff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s ease;
}

.public-seller-search-btn:hover{
  background:#0f172a;
}

.public-seller-category-chips-wrap{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  margin:0 -2px;
  padding:2px 0 4px;
}

.public-seller-category-chips{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  white-space:nowrap;
  width:max-content;
  min-width:100%;
}

.public-seller-category-chip{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  padding:6px 14px;
  border-radius:20px;
  background-color:#f3f4f6;
  color:#374151;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none !important;
  border:1px solid transparent;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}

.public-seller-category-chip:hover{
  background:#e5e7eb;
  color:#111827;
}

.public-seller-category-chip.is-active{
  background:#1e293b;
  border-color:#1e293b;
  color:#fff;
}

.public-seller-category-chip.is-active:hover{
  background:#0f172a;
  color:#fff;
}

.public-seller-pagination{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:30px;
  padding-top:18px;
  border-top:1px solid #e5e7eb;
}

.public-seller-page-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#334155;
  font-size:14px;
  font-weight:600;
  text-decoration:none !important;
  transition:border-color .18s ease, color .18s ease, background .18s ease;
}

.public-seller-page-link:hover{
  border-color:#1e293b;
  color:#1e293b;
  background:#f8fafc;
}

.public-seller-page-link.is-disabled{
  opacity:.4;
  cursor:default;
  pointer-events:none;
}

.public-seller-page-numbers{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  justify-content:center;
}

.public-seller-page-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0;
  border-radius:10px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#334155;
  font-size:14px;
  font-weight:600;
  text-decoration:none !important;
  transition:border-color .18s ease, color .18s ease, background .18s ease;
}

.public-seller-page-num.is-current{
  background:#1e293b;
  border-color:#1e293b;
  color:#fff;
}

.public-seller-page-num:hover{
  border-color:#1e293b;
  color:#1e293b;
  background:#f8fafc;
}

.public-seller-page-num.is-current:hover{
  background:#0f172a;
  color:#fff;
}

.public-seller-products-empty{
  margin:0;
  padding:24px 18px;
  text-align:center;
  color:#64748b;
  font-size:15px;
  line-height:1.5;
  background:#f8fafc;
  border:1px dashed #e2e8f0;
  border-radius:12px;
}

.detail-section-card .product-title{
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  color:#111827;
  padding:10px 10px 0;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.public-seller-back{
  display:flex;
  justify-content:center;
  margin-top:32px;
  padding-top:8px;
}

.public-seller-back-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:42px;
  padding:0 18px;
  border:1px solid #d1d5db;
  border-radius:10px;
  background:#fff;
  color:#475569;
  font-size:14px;
  font-weight:600;
  text-decoration:none !important;
  transition:border-color .18s ease, color .18s ease, background .18s ease;
}

.public-seller-back-btn:hover{
  border-color:#94a3b8;
  color:#1e293b;
  background:#f8fafc;
}

.public-seller-socials,
.seller-profile-socials,
.seller-trust-socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.seller-catalog-link{
  display:inline-block;
  margin-bottom:12px;
  color:#374151;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  line-height:1.4;
}

.seller-catalog-link:hover{
  color:#ef3d2f;
}

.seller-trust-actions{
  margin-top:10px;
}

.seller-social-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  height:30px;
  padding:4px 12px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  border:none;
  background:#fff;
  color:#222;
  transition:background .18s ease,color .18s ease,transform .18s ease;
  box-sizing:border-box;
  white-space:nowrap;
}

.seller-social-chip-instagram{
  background:#fdf2f8;
  color:#db2777;
}

.seller-social-chip-website{
  background:#f0f9ff;
  color:#0284c7;
}

.seller-social-chip:hover{
  transform:translateY(-1px);
}

@media (max-width:900px){
  .seller-profile-grid{
    grid-template-columns:1fr;
  }
}

/* Seller dashboard (cabinet) */

.market-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

.market-header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.market-logo img{
  height:36px;
  display:block;
}

.market-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.market-nav .btn-add{
  background:#e31e24;
  color:#fff;
  padding:10px 18px;
  border-radius:8px;
  font-weight:800;
  text-decoration:none;
}

.market-nav .nav-link{
  color:#333;
  font-weight:700;
  text-decoration:none;
}

.market-nav .nav-link-exit{
  color:#888;
}

.seller-dashboard{
  padding:22px 0 46px;
}

.seller-dashboard-head{
  margin-bottom:16px;
}

.seller-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:#333;
}

.seller-meta span:not(:last-child)::after{
  content:"·";
  margin-left:10px;
  color:#aaa;
}

.seller-dashboard-search{
  margin-bottom:16px;
}

.seller-dashboard-search-form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.seller-dashboard-search-form input[type="text"],
.seller-dashboard-search-form select{
  height:40px;
  min-height:40px;
  border:1px solid #ddd;
  border-radius:10px;
  padding:0 12px;
  font-size:14px;
  font-family:inherit;
  box-sizing:border-box;
  background:#fff;
}

.seller-dashboard-search-form input[type="text"]{
  flex:1 1 220px;
  min-width:180px;
}

.seller-dashboard-search-form select{
  min-width:150px;
}

.seller-dashboard-search-btn{
  height:40px;
  min-height:40px;
  padding:0 18px;
  border:none;
  border-radius:10px;
  background:#ef3d2f;
  color:#fff;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  font-family:inherit;
  white-space:nowrap;
}

.seller-dashboard-search-btn:hover{
  background:#d93628;
}

.products-container{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:20px;
}

.product-card{
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.product-image-link{
  height:170px;
  display:block;
  overflow:hidden;
  background:#fafafa;
}

.product-image{
  width:100%;
  height:170px;
  object-fit:contain;
  padding:10px;
  box-sizing:border-box;
  display:block;
}

.product-card-body{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.product-car{
  color:#64748b;
  font-size:13px;
  margin-bottom:6px;
}

.product-card .product-title{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}

.product-card .product-price{
  padding:0;
  margin:0 0 8px;
  color:#e31e24;
  font-size:20px;
  font-weight:900;
}

.product-status{
  color:#64748b;
  font-size:13px;
  line-height:1.35;
  margin-bottom:12px;
}

.product-card .product-card-actions{
  display:grid;
  grid-template-columns:minmax(0, 1fr) max-content;
  align-items:center;
  gap:10px;
  width:100%;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid #f1f5f9;
  box-sizing:border-box;
}

.product-card .btn-edit{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  padding:9px 8px;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#ffffff;
  color:#374151;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  box-sizing:border-box;
}

.product-card .btn-delete-icon{
  display:block;
  margin:0;
  padding:9px 0;
  color:#94a3b8;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
}

.product-card .btn-edit:hover{
  background:#f9fafb;
  border-color:#9ca3af;
}

.product-card .btn-delete-icon:hover{
  color:#e31e24;
}

.empty-products{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:32px 24px;
  text-align:center;
}

.empty-products h2{
  margin:0 0 8px;
  font-size:22px;
}

.empty-products p{
  margin:0 0 18px;
  color:#64748b;
  font-size:15px;
}

@media (max-width:640px){
  .container{
    padding:10px;
  }

  .topbar-inner:not(.market-topbar-inner){
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .seller-auth-header .topbar-inner{
    flex-direction:row !important;
    align-items:center !important;
    gap:12px !important;
    padding:8px 10px !important;
  }

  .brand img{
    height:30px;
  }

  .seller-auth-header .brand img{
    height:24px !important;
    width:auto !important;
    max-width:none !important;
  }

  .dashboard-subtitle{
    font-size:14px;
  }

  .seller-form .checkbox-group{
    grid-template-columns:1fr;
  }

  .current-image-box img{
    width:100%;
    height:200px;
  }

  .seller-profile-grid{
    display:block;
    gap:0;
    background:#f8fafc;
    border:1px solid #eef2f7;
    border-radius:14px;
    overflow:hidden;
  }

  .seller-profile-box{
    background:transparent;
    border:none;
    border-radius:0;
    border-bottom:1px solid #eef2f7;
    padding:12px;
  }

  .seller-profile-box.full{
    grid-column:auto;
    border-bottom:none;
  }

  .seller-profile-box:last-child{
    border-bottom:none;
  }

  .seller-profile-box-title{
    font-size:15px;
    margin-bottom:8px;
  }

  .seller-profile-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
  }

  .seller-profile-row:last-child{
    margin-bottom:0;
  }

  .seller-profile-label{
    font-size:13px;
    margin-bottom:0;
    flex-shrink:0;
  }

  .seller-profile-value{
    font-size:14px;
    text-align:right;
  }

  .seller-profile-card{
    padding:14px;
  }

  .seller-profile-socials{
    gap:8px;
  }

  .public-seller-header{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
  }

  .seller-profile-top-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .seller-profile-main{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .seller-profile-identity h1{
    font-size:22px;
  }

  .seller-profile-aside{
    width:100%;
  }

  .public-seller-socials,
  .seller-trust-socials{
    justify-content:center;
  }

  .seller-profile-logo-lg.public-seller-logo{
    width:96px;
    height:96px;
  }

  .public-seller-profile-card,
  .seller-profile-card.public-seller-profile-card{
    margin-top:-40px;
    padding:16px;
  }

  .contacts-box.seller-contacts-grid{
    padding:14px;
  }

  .seller-contact-phones{
    flex-direction:column;
    align-items:flex-start;
  }

  .public-seller-logo{
    width:80px;
    height:80px;
    border-radius:50%;
    background-color:#ffffff !important;
  }

  .public-seller-info h1{
    font-size:22px;
  }

  .public-seller-meta{
    font-size:14px;
  }

  .public-seller-description{
    font-size:14px;
  }

  .public-seller-socials{
    margin-top:4px;
  }

  .public-seller-products-toolbar{
    padding:14px;
    gap:14px;
  }

  .public-seller-products-head h2{
    font-size:20px;
  }

  .public-seller-count-badge{
    font-size:12px;
    padding:3px 10px;
  }

  .public-seller-input-group input[type="text"]{
    font-size:13px;
    padding:0 12px;
  }

  .public-seller-search-btn{
    padding:0 16px;
    font-size:13px;
  }

  .public-seller-category-chip{
    font-size:12px;
    padding:6px 12px;
  }

  .public-seller-pagination{
    gap:6px;
    margin-top:26px;
  }

  .public-seller-page-link,
  .public-seller-page-num{
    min-width:36px;
    height:36px;
    font-size:13px;
  }

  .public-seller-back{
    margin-top:24px;
  }

  .seller-profile-title-main{
    font-size:26px;
  }

  .seller-profile-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .seller-profile-delete{
    margin-left:0;
    text-align:center;
  }

  .detail-section-card .products{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .detail-section-card .product{
    border-radius:14px;
  }

  .detail-section-card .product img{
    height:95px;
    padding:6px;
  }

  .detail-section-card .product-price{
    font-size:18px;
  }

  .detail-section-card .product-seller{
    font-size:12px;
  }

  .seller-page-card{
    margin:16px auto;
    padding:16px;
    border-radius:14px;
  }

  .seller-page-card h1,
  .seller-page-card h2{
    font-size:20px;
  }

  .form-action-row{
    flex-direction:column;
  }

  .form-action-row .btn{
    width:100%;
  }

  .market-header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .market-nav{
    width:100%;
    flex-wrap:wrap;
    gap:10px;
  }

  .market-nav .btn-add{
    width:100%;
    text-align:center;
    box-sizing:border-box;
  }

  .seller-dashboard{
    padding:16px 0 32px;
  }

  .seller-dashboard-head h1{
    font-size:22px;
    margin:0 0 8px;
  }

  .seller-meta{
    font-size:14px;
    gap:8px;
  }

  .seller-dashboard-search{
    margin-bottom:12px;
  }

  .seller-dashboard-search-form{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }

  .seller-dashboard-search-form input[type="text"],
  .seller-dashboard-search-form select,
  .seller-dashboard-search-btn{
    width:100%;
    height:38px !important;
    min-height:38px !important;
  }

  .seller-dashboard-search-form input[type="text"],
  .seller-dashboard-search-form select{
    min-width:0;
    flex:none;
  }

  .seller-dashboard .products-container,
  .seller-dashboard .products,
  .products-container,
  .products{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }

  .product-image-link,
  .product-image{
    height:120px;
  }

  .product-card-body{
    padding:10px 12px 12px;
  }

  .product-car{
    font-size:11px;
    margin-bottom:4px;
  }

  .product-card .product-title{
    font-size:14px;
    margin-bottom:6px;
  }

  .product-card .product-price{
    font-size:16px;
    margin-bottom:6px;
  }

  .product-status{
    font-size:11px;
    line-height:1.3;
    margin-bottom:0;
  }

  .product-card .product-card-actions,
  .seller-dashboard .dashboard-card-actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding-top:10px;
  }

  .seller-dashboard .product-card .btn-edit,
  .seller-dashboard .product-card .btn-delete-icon{
    width:100%;
    height:34px;
    min-height:34px;
    padding:0 8px;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    border-radius:8px;
  }

  .seller-dashboard .product-card .btn-delete-icon{
    background:#fff5f5;
    color:#ef3d2f;
    border:none;
  }

  .seller-dashboard .product-card .btn-delete-icon:hover{
    background:#fee2e2;
    color:#dc2626;
  }

  .empty-products{
    padding:24px 16px;
    border-radius:14px;
  }

  .empty-products h2{
    font-size:18px;
  }

  .empty-products p{
    font-size:14px;
  }

  /* Catalog homepage: filters 2×2 + product card polish */
  .filter-box .filter-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .filter-box .filter-grid select{
    height:38px !important;
    min-height:38px !important;
    font-size:13px !important;
    padding:0 10px !important;
  }

  .filter-box{
    padding:10px !important;
  }

  .filter-title{
    font-size:14px !important;
    margin-bottom:6px !important;
  }

  .products{
    align-items:stretch !important;
  }

  .product.product-v2{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
  }

  .product.product-v2 .product-body{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    padding:8px !important;
  }

  .product.product-v2 .product-actions-v2{
    margin-top:auto !important;
  }

  .product.product-v2 .btn-green,
  .product.product-v2 .product-detail-link{
    height:32px !important;
    min-height:32px !important;
    max-height:34px !important;
    font-size:12px !important;
    padding:0 6px !important;
    white-space:nowrap !important;
  }

  .product.product-v2 .wa-label-full{
    display:none !important;
  }

  .product.product-v2 .wa-label-short{
    display:inline !important;
  }

  .product.product-v2 .product-meta-details{
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    font-size:11px !important;
    line-height:1.3 !important;
    margin-bottom:4px !important;
    gap:0 !important;
  }

  .product.product-v2 .product-meta-details span:last-child{
    word-break:break-all !important;
  }

  .product.product-v2 .product-meta-details .meta-sep{
    padding:0 4px !important;
  }

  /* Product detail page: compact specs + hide duplicate WhatsApp row */
  .product-info-card .detail-grid,
  .detail-section-card .detail-grid{
    display:block !important;
    grid-template-columns:none !important;
    gap:0 !important;
    margin-top:12px;
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    overflow:hidden;
  }

  .product-info-card .detail-grid .detail-box,
  .detail-section-card .detail-grid .detail-box{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background:transparent !important;
    border-radius:0 !important;
    padding:8px !important;
    border-bottom:1px solid #f0f0f0;
  }

  .product-info-card .detail-grid .detail-box:last-child,
  .detail-section-card .detail-grid .detail-box:last-child{
    border-bottom:none;
  }

  .product-info-card .detail-label,
  .detail-section-card .detail-label{
    font-size:14px;
    margin-bottom:0;
    color:#666;
  }

  .product-info-card .detail-value,
  .detail-section-card .detail-value{
    font-size:14px;
    font-weight:600;
    text-align:right;
  }

  .detail-box-whatsapp{
    display:none !important;
  }

  /* Header, search, WhatsApp polish */
  .market-brand img,
  .logo img{
    height:24px !important;
    width:auto !important;
  }

  .market-topbar-inner,
  .header-inner.market-topbar-inner{
    padding:8px 10px !important;
  }

  .search-row{
    gap:8px !important;
  }

  .search-row input,
  .search-btn{
    height:42px !important;
    min-height:42px !important;
  }

  .product.product-v2 .product-wa-btn,
  .product.product-v2 .btn-green.product-wa-btn{
    background:#25D366 !important;
    border-color:#25D366 !important;
    color:#fff !important;
  }

  .product.product-v2 .product-wa-btn:hover,
  .product.product-v2 .btn-green.product-wa-btn:hover{
    background:#20bd5a !important;
    border-color:#20bd5a !important;
  }

  .seller-auth-header .brand img,
  .seller-cabinet-header .market-logo img{
    height:24px !important;
    width:auto !important;
    max-width:none !important;
  }

  .seller-cabinet-header .market-header-inner,
  .seller-auth-header .topbar-inner{
    padding-top:8px !important;
    padding-bottom:8px !important;
  }
}

/* Панель товаров продавца */
.seller-products-header {
  margin: 24px 0 16px 0;
  padding: 0 8px;
}
.seller-products-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
}
.products-badge {
  font-size: 13px;
  font-weight: 500;
  background-color: #f3f4f6;
  color: #6b7280;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Красивый современный поиск */
.seller-search-form {
  margin: 0 0 16px 0;
  padding: 0 8px;
}
.search-input-group {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.search-input-group input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  width: 100%;
}
.search-input-group button {
  background-color: #111827;
  color: #fff;
  border: none;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-input-group button:hover {
  background-color: #1f2937;
}

/* Горизонтальный скролл чипов как в Каспи/Instagram */
.seller-chips-container {
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 4px 0;
}
.seller-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 8px 8px 8px;
  scrollbar-width: none; /* Firefox */
}
.seller-chips-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.seller-chips-scroll .chip {
  display: inline-block;
  white-space: nowrap;
  background-color: #f3f4f6;
  color: #374151;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.seller-chips-scroll .chip.active {
  background-color: #2563eb; /* Красивый синий */
  color: #ffffff;
  font-weight: 600;
}

/* Пагинация */
.public-seller-pagination {
  margin: 32px 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
