:root{
  --primary:#222;
  --accent:#222;
  --bg:#ebebeb;
  --glass-bg:rgba(255,255,255,0.75);
  --glass-border:rgba(255,255,255,0.4);
}

body{
  font-family:'Helvetica Neue',sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--primary);
  position:relative;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-y:scroll;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

body::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

*::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

*{
  scrollbar-width:none;
  -ms-overflow-style:none;
}

header{
  background:rgba(255,255,255,0.95);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(150,150,150,0.15);
  border-radius:0 0 20px 20px;
  padding:clamp(8px, 2vw, 10px) clamp(12px, 4vw, 22px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  min-height:52px;
  height:auto;
  gap:clamp(6px, 2vw, 12px);
}

.logo{
  font-size:24px;
  font-weight:900;
  letter-spacing:-0.5px;
  cursor:pointer;
  -webkit-user-select:none;
  user-select:none;
}
.logo span{ color:var(--accent); }

.userBlock{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  padding:6px 12px;
  border-radius:12px;
  border:1px solid rgba(150,150,150,0.25);
  background:rgba(255,255,255,0.8);
  min-width:0;
  max-width:100%;
  flex-shrink:1;
}

.userAva{
  width:32px;
  height:32px;
  border-radius:10px;
  background:#e8e8e8;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.userAva svg{
  width:18px;
  height:18px;
  color:#999;
}

.userNick{
  font-weight:900;
  font-size:13px;
  letter-spacing:-0.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

.btn{
  display: inline-flex;
  align-items: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  gap: 8px;
  padding:10px 18px;
  border-radius:10px;
  cursor:pointer;
  border:1px solid rgba(150,150,150,0.25);
  font-weight:700;
  background:rgba(255,255,255,0.8);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  min-width:120px;
  text-align:center;
  justify-content: center;
  font-size:14px;
  transition:all .2s ease;
  color: #111;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}

.btn-primary{
  background:#111;
  color:#fff;
  border-color:#111;
}
.btn-primary:hover{
  background:#000;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
}

.btn-outline{
  border:1px solid rgba(150,150,150,0.3);
  background:transparent;
  color: #111;
}
.btn-outline:hover{
  background:rgba(255,255,255,0.6);
  border-color:rgba(150,150,150,0.5);
}

.btn-danger{
  border-color:#c62828;
  color:#c62828;
  background:rgba(255,255,255,0.8);
}
.btn-danger:hover{
  background:#c62828;
  color:#fff;
  box-shadow:0 6px 20px rgba(198,40,40,.25);
}

.container{
  max-width:1050px;
  margin:20px auto;
  padding:0 15px;
  position:relative;
  z-index:1;
}

.page-title{
  text-align:center;
  margin:16px 0;
  font-weight:900;
  font-size:28px;
}

.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  background:rgba(255,255,255,0.85);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border:1px solid rgba(150,150,150,0.2);
  border-radius:16px;
  padding:16px;
  margin:14px 0 20px;
  align-items:center;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  position:relative;
  z-index:10;
  overflow:visible;
}

.filters-row{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
  width:100%;
  align-items:center;
  overflow:visible;
}

.filters input, .filters select{
  height:44px;
  border:1px solid rgba(150,150,150,0.25);
  border-radius:11px;
  padding:0 14px;
  font:inherit;
  outline:none;
  background:rgba(255,255,255,0.7);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  -webkit-appearance:none;
  appearance:none;
  transition:all .2s ease;
  flex-shrink:1;
  min-width:0;
}

.filters select{
  padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  cursor:pointer;
}

.filters input:focus, .filters select:focus{
  border-color:#222;
  background:rgba(255,255,255,0.95);
  box-shadow:0 0 0 3px rgba(34,34,34,0.05);
}

.filters select option{
  padding:12px;
  background:#fff;
  color:#222;
  font-weight:500;
}

.filters select option:first-child{
  color:#999;
  font-weight:600;
}

.filters select option:checked,
.filters select option:hover{
  background:rgba(34,34,34,0.08);
  color:#111;
}

.filters .grow{ min-width:180px; flex-shrink:1; flex-grow:1; }
.filters .w110{ width:110px; flex-shrink:1; min-width:90px; }
.filters .w130{ width:130px; flex-shrink:1; min-width:110px; }
.filters .w140{ width:140px; flex-shrink:1; min-width:120px; }

.filter-actions{
  display:flex;
  gap:10px;
  width:100%;
  justify-content:center;
}

.search-wrapper{
  position:relative;
  min-width:180px;
  flex-shrink:1;
  flex-grow:1;
}

.search-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
}

.search-input{
  padding-left:40px;
  width:100%;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
}

.cardLink{
  display:flex;
  height:100%;
  color:inherit;
  text-decoration:none;
}

.card{
  background:var(--glass-bg);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border:2px dashed rgba(150,150,150,0.28);
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  height:100%;
  width:100%;
  transition:all .25s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  border-color:rgba(150,150,150,0.4);
}
.item-card{
  cursor:default;
}
.item-card:hover{
  transform:none;
  box-shadow:none;
  border-color:rgba(150,150,150,0.3);
}

.card-img{
  height:250px;
  background:#e5e5e5 center/cover no-repeat;
  border-bottom:2px dashed rgba(150,150,150,0.28);
  flex-shrink:0;
  position:relative;
}

.card-views{
  position:absolute;
  bottom:10px;
  right:10px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px 10px;
  border-radius:8px;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  color:#fff;
  font-size:11px;
  font-weight:700;
  z-index:2;
}

.card-views svg{
  width:14px;
  height:14px;
}

.card-quick-view{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:56px;
  height:56px;
  border-radius:50%;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:2px dashed rgba(150,150,150,0.4);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:all .25s ease;
  z-index:5;
}

.card:hover .card-quick-view{
  opacity:1;
}

.card-quick-view:hover{
  transform:translate(-50%, -50%) scale(1.1);
  background:#111;
  border-color:#111;
}

.card-quick-view:hover svg{
  color:#fff;
}

.card-quick-view svg{
  width:24px;
  height:24px;
  color:#222;
  transition:color .2s ease;
}

.item-card .card-quick-view{
  display:none;
}

.card-info{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
  margin-bottom:6px;
}

.card-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:auto;
  gap:8px;
}

.card-size{
  font-size:11px;
  color:#666;
  padding:4px 8px;
  border:1px dashed rgba(150,150,150,0.35);
  border-radius:6px;
  background:rgba(255,255,255,0.6);
  white-space:nowrap;
  font-weight:600;
}

.card-seller{
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border:1px dashed rgba(150,150,150,0.35);
  border-radius:8px;
  background:rgba(255,255,255,0.65);
}

.card-seller-ava{
  width:22px;
  height:22px;
  border-radius:6px;
  background:#e8e8e8;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.card-seller-ava svg{
  width:11px;
  height:11px;
  color:#aaa;
}

.card-seller-nick{
  font-size:12px;
  font-weight:800;
  color:#555;
}

.card-seller-subs{
  display:inline-flex;
  align-items:center;
  gap:3px;
  font-size:11px;
  font-weight:700;
  color:#888;
  margin-left:auto;
  flex-shrink:0;
}

.card-seller-subs svg{
  color:#999;
  flex-shrink:0;
}

.price{
  font-weight:900;
  font-size:16px;
  color:#111;
  letter-spacing:-0.4px;
}

.title{
  font-size:13px;
  margin:0;
  color:#444;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.35;
  flex:1;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-weight:500;
}

.meta{
  font-size:12px;
  color:#999;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.meta span:last-child{ color:#777; }

.empty{
  text-align:center;
  background:rgba(255,255,255,0.85);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border:2px dashed rgba(150,150,150,0.3);
  border-radius:18px;
  padding:48px 24px;
  color:#666;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  animation:fadeIn 0.3s ease;
}

.empty-icon{
  width:72px;
  height:72px;
  color:#bbb;
  margin-bottom:8px;
}

.empty-title{
  font-size:20px;
  font-weight:900;
  color:#222;
  margin-bottom:4px;
  letter-spacing:-0.3px;
}

.empty-text{
  font-size:14px;
  color:#777;
  line-height:1.5;
  max-width:320px;
}

.empty b{
  color:#111;
  font-weight:800;
}

.skeleton{
  background:linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size:200% 100%;
  animation:skeleton-loading 1.5s ease-in-out infinite;
  border-radius:8px;
}

@keyframes skeleton-loading{
  0%{ background-position:200% 0; }
  100%{ background-position:-200% 0; }
}

.skeleton-card{
  background:rgba(255,255,255,0.85);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border:2px dashed rgba(150,150,150,0.28);
  border-radius:14px;
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
}

.skeleton-img{
  height:250px;
  background:linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size:200% 100%;
  animation:skeleton-loading 1.5s ease-in-out infinite;
  border-bottom:2px dashed rgba(150,150,150,0.28);
}

.skeleton-content{
  padding:13px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.skeleton-line{
  height:16px;
  background:linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size:200% 100%;
  animation:skeleton-loading 1.5s ease-in-out infinite;
  border-radius:6px;
}

.skeleton-line.short{
  width:60%;
}

.skeleton-line.medium{
  width:80%;
}

.modal{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.45);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  align-items:center;
  justify-content:center;
  z-index:1000;
  animation:fadeIn .2s ease;
}

@keyframes fadeIn{
  from{ opacity:0; }
  to{ opacity:1; }
}

.modal-content{
  background:rgba(255,255,255,0.98);
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
  border:1px solid rgba(150,150,150,0.2);
  padding:26px;
  border-radius:18px;
  width:340px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.15);
  animation:slideUp .3s ease;
}

@keyframes slideUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.modal-content-wide{ width:400px; }

.modal-title{
  margin:0 0 18px;
  font-size:22px;
  font-weight:900;
  letter-spacing:-0.5px;
}

.modal-input{
  width:100%;
  padding:12px 14px;
  border:1px solid rgba(150,150,150,0.25);
  border-radius:11px;
  margin-top:10px;
  font:inherit;
  background:rgba(255,255,255,0.7);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  outline:none;
  box-sizing:border-box;
  transition:all .2s ease;
}
.modal-input:focus{
  border-color:#222;
  background:rgba(255,255,255,0.95);
  box-shadow:0 0 0 3px rgba(34,34,34,0.05);
}

.modal-textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid rgba(150,150,150,0.25);
  border-radius:11px;
  margin-top:10px;
  font:inherit;
  background:rgba(255,255,255,0.7);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  outline:none;
  resize:none;
  height:120px;
  box-sizing:border-box;
  transition:all .2s ease;
}
.modal-textarea:focus{
  border-color:#222;
  background:rgba(255,255,255,0.95);
  box-shadow:0 0 0 3px rgba(34,34,34,0.05);
}

select.modal-input{
  -webkit-appearance:none;
  appearance:none;
  padding-right:36px;
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-color:rgba(255,255,255,0.5);
  cursor:pointer;
}

.modal-btn-primary{
  width:100%;
  margin-top:14px;
}

.modal-btn-cancel{
  margin-top:10px;
  border:2px dashed rgba(150,150,150,0.4);
  background:transparent;
  width:100%;
}

.modal-text{
  color:#666;
  font-size:14px;
  line-height:1.4;
  margin-bottom:4px;
}

.upload-zone{
  border:2px dashed rgba(150,150,150,0.3);
  border-radius:12px;
  padding:12px;
  margin:12px 0;
  text-align:left;
  background:rgba(255,255,255,0.3);
}

.upload-zone-content{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.upload-hint{
  font-size:12px;
  color:#777;
}

.upload-input{
  display:none;
}

.upload-previews{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.preview-wrap{
  position:relative;
}

.preview-img{
  width:68px;
  height:68px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #ddd;
}

.preview-remove{
  position:absolute;
  top:-6px;
  right:-6px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid #111;
  background:#fff;
  cursor:pointer;
}

input, textarea, select{
  box-sizing:border-box;
  font-family:inherit;
}

svg{
  vertical-align: middle;
}

.toastRoot{
  position:fixed;
  right:18px;
  bottom:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:99999;
  pointer-events:none;
}

.toast{
  pointer-events:auto;
  background:rgba(17,17,17,0.95);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:#fff;
  border-radius:12px;
  padding:12px 14px;
  min-width:260px;
  max-width:360px;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.15);
  transform:translateY(8px);
  opacity:0;
  transition:all .18s ease;
  text-align:left;
  line-height:1.25;
}
.toast.show{ opacity:1; transform:translateY(0); }
.toast .tTitle{ font-weight:900; margin-bottom:4px; }
.toast .tBody{ color:rgba(255,255,255,.88); font-size:13px; }

.auth-section{
  display:flex;
  align-items:center;
  gap:10px;
}

.header-btns{
  display:flex;
  gap:clamp(6px, 2vw, 10px);
  align-items:center;
  flex-shrink:1;
  min-width:0;
  overflow:hidden;
}

.icon-btn{
  width:44px;
  height:44px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal-link{
  margin-top:14px;
}

.modal-link-text{
  color:#222;
  font-weight:900;
  text-decoration:none;
}

.upload-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.upload-icon{
  display:inline-block;
  vertical-align:middle;
}

.userAva-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}

.userAva-icon{
  width:18px;
  height:18px;
  color:#999;
  display:none;
}

.userAva-img[style*="display: none"] + .userAva-icon,
.userAva-img:not([src]) + .userAva-icon{
  display:block;
}

.card-img-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e8e8e8;
}

.card-img-icon{
  width:60px;
  height:60px;
  color:#bbb;
}

.btn-success{
  background:#111;
  color:#fff;
  border:2px dashed #111;
}

.card-img{
  position:relative;
}

.card-reserved-badge{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:10px;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.3);
}

.card-reserved-badge svg{
  color:#fff;
}

.card-reserved{
  opacity:0.6;
  filter:grayscale(0.4);
}


.popular-section{
  margin-bottom:28px;
}

.popular-header{
  margin-bottom:18px;
}

.popular-title{
  font-size:20px;
  font-weight:900;
  margin:0;
  letter-spacing:-0.3px;
}

.popular-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
}

.catalog-divider{
  display:flex;
  align-items:center;
  gap:16px;
  margin:32px 0 24px;
}

.divider-line{
  flex:1;
  height:2px;
  background:linear-gradient(90deg, transparent, rgba(150,150,150,0.25) 20%, rgba(150,150,150,0.25) 80%, transparent);
}

.divider-text{
  font-size:14px;
  font-weight:700;
  color:#666;
  letter-spacing:0.5px;
  text-transform:uppercase;
  white-space:nowrap;
}


.filters .custom-select-wrapper{
  position:relative;
  width:140px;
  z-index:100;
  flex-shrink:1;
}

.custom-select-wrapper.open{
  z-index:1001;
}

.custom-select-trigger{
  height:44px;
  border:1px solid rgba(150,150,150,0.25);
  border-radius:11px;
  padding:0 38px 0 14px;
  font:inherit;
  background:rgba(255,255,255,0.7);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  cursor:pointer;
  display:flex;
  align-items:center;
  transition:all .2s ease;
  position:relative;
  user-select:none;
  color:#999;
}

.custom-select-trigger.selected{
  color:#222;
}

.custom-select-wrapper.disabled .custom-select-trigger{
  cursor:not-allowed;
  opacity:0.6;
}

.custom-select-wrapper.disabled .custom-select-trigger::after{
  display:none;
}

.custom-select-trigger::after{
  content:'';
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:12px;
  height:8px;
  background:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  transition:transform .2s ease;
}

.custom-select-wrapper.open .custom-select-trigger::after{
  transform:translateY(-50%) rotate(180deg);
}

.custom-select-wrapper.open .custom-select-trigger{
  border-color:#222;
  background:rgba(255,255,255,0.95);
  box-shadow:0 0 0 3px rgba(34,34,34,0.05);
}

.custom-select-dropdown{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  background:rgba(255,255,255,0.98);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border:1px solid rgba(150,150,150,0.25);
  border-radius:11px;
  max-height:280px;
  overflow-y:auto;
  z-index:1000;
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:all .2s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.custom-select-wrapper.open .custom-select-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.custom-select-option{
  padding:12px 14px;
  cursor:pointer;
  transition:all .15s ease;
  font-weight:500;
  color:#222;
}

.custom-select-option.placeholder{
  display:none;
}

.custom-select-option:hover{
  background:rgba(34,34,34,0.06);
}

.custom-select-option.selected{
  background:rgba(34,34,34,0.08);
  font-weight:700;
  color:#111;
}

.custom-select-option:first-child{
  border-radius:10px 10px 0 0;
}

.custom-select-option:last-child{
  border-radius:0 0 10px 10px;
}

.custom-select-dropdown::-webkit-scrollbar{
  width:6px;
}

.custom-select-dropdown::-webkit-scrollbar-track{
  background:transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb{
  background:rgba(150,150,150,0.3);
  border-radius:3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover{
  background:rgba(150,150,150,0.5);
}


.modal-select-wrapper{
  position:relative;
  width:100%;
  margin-top:10px;
}

.modal-select-wrapper.open{
  z-index:1001;
}

.modal-select-trigger{
  width:100%;
  padding:12px 38px 12px 14px;
  border:1px solid rgba(150,150,150,0.25);
  border-radius:11px;
  font:inherit;
  background:rgba(255,255,255,0.7);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  cursor:pointer;
  display:flex;
  align-items:center;
  transition:all .2s ease;
  position:relative;
  user-select:none;
  box-sizing:border-box;
  text-align:left;
}

.modal-select-trigger span{
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#999;
}

.modal-select-trigger span.selected{
  color:#222;
}

.modal-select-trigger::after{
  content:'';
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:12px;
  height:8px;
  background:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  transition:transform .2s ease;
}

.modal-select-wrapper.open .modal-select-trigger::after{
  transform:translateY(-50%) rotate(180deg);
}

.modal-select-wrapper.open .modal-select-trigger{
  border-color:#222;
  background:rgba(255,255,255,0.95);
  box-shadow:0 0 0 3px rgba(34,34,34,0.05);
}

.modal-select-dropdown{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  background:rgba(255,255,255,0.98);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border:1px solid rgba(150,150,150,0.25);
  border-radius:11px;
  max-height:240px;
  overflow-y:auto;
  z-index:1000;
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:all .2s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.modal-select-wrapper.open .modal-select-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.modal-select-option{
  padding:12px 14px;
  cursor:pointer;
  transition:all .15s ease;
  font-weight:500;
  color:#222;
}

.modal-select-option.placeholder{
  display:none;
}

.modal-select-option:hover{
  background:rgba(34,34,34,0.06);
}

.modal-select-option.selected{
  background:rgba(34,34,34,0.08);
  font-weight:700;
  color:#111;
}

.modal-select-option:first-child{
  border-radius:10px 10px 0 0;
}

.modal-select-option:last-child{
  border-radius:0 0 10px 10px;
}

.modal-select-dropdown::-webkit-scrollbar{
  width:6px;
}

.modal-select-dropdown::-webkit-scrollbar-track{
  background:transparent;
}

.modal-select-dropdown::-webkit-scrollbar-thumb{
  background:rgba(150,150,150,0.3);
  border-radius:3px;
}

.modal-select-dropdown::-webkit-scrollbar-thumb:hover{
  background:rgba(150,150,150,0.5);
}


.quick-view-modal{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  z-index:2000;
  align-items:center;
  justify-content:center;
  animation:fadeIn .25s ease;
}

.nearChatFab{
  transition:transform .3s ease, opacity .3s ease;
}

body:has(.quick-view-modal[style*="display: flex"]) .nearChatFab,
body:has(.quick-view-modal[style*="display:flex"]) .nearChatFab,
body:has(.modal[style*="display: flex"]) .nearChatFab,
body:has(.modal[style*="display:flex"]) .nearChatFab{
  transform:translateY(100px);
  opacity:0;
  pointer-events:none;
}

.quick-view-content{
  background:rgba(255,255,255,0.98);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:2px dashed rgba(150,150,150,0.3);
  border-radius:20px;
  width:90%;
  max-width:900px;
  max-height:85vh;
  overflow-y:auto;
  position:relative;
  animation:slideUp .3s ease;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
}

.quick-view-close{
  position:absolute;
  top:16px;
  right:16px;
  border:2px dashed rgba(150,150,150,0.4);
  background:rgba(255,255,255,0.9);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border-radius:12px;
  padding:7px 12px;
  cursor:pointer;
  z-index:10;
  transition:all .2s ease;
  font-weight:900;
  font-size:16px;
  line-height:1;
}

.quick-view-close:hover{
  background:#fff;
  border-color:rgba(150,150,150,0.6);
  transform:translateY(-1px);
}

.quick-view-body{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  padding:32px;
}

.quick-view-gallery{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.quick-view-main-image{
  width:100%;
  height:400px;
  border-radius:14px;
  border:2px dashed rgba(150,150,150,0.3);
  background:#e5e5e5 center/cover no-repeat;
  overflow:hidden;
}

.quick-view-thumbs{
  display:flex;
  gap:8px;
  overflow-x:auto;
}

.quick-view-thumb{
  width:70px;
  height:70px;
  border-radius:10px;
  border:2px dashed rgba(150,150,150,0.3);
  background:#e5e5e5 center/cover no-repeat;
  cursor:pointer;
  flex-shrink:0;
  transition:all .2s ease;
}

.quick-view-thumb:hover{
  border-color:rgba(150,150,150,0.6);
  transform:scale(1.05);
}

.quick-view-thumb.active{
  border-color:#222;
  border-style:solid;
}

.quick-view-info{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.quick-view-title{
  font-size:24px;
  font-weight:900;
  margin:0;
  letter-spacing:-0.5px;
  line-height:1.3;
}

.quick-view-price{
  font-size:28px;
  font-weight:900;
  color:#111;
  letter-spacing:-0.6px;
}

.quick-view-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.quick-view-meta-item{
  padding:10px 14px;
  border-radius:10px;
  border:2px dashed rgba(150,150,150,0.3);
  background:rgba(255,255,255,0.6);
}

.quick-view-meta-label{
  font-size:12px;
  color:#666;
  font-weight:600;
  display:block;
  margin-bottom:4px;
}

.quick-view-meta-value{
  font-size:14px;
  font-weight:700;
  color:#111;
}

.quick-view-seller{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:12px;
  border:2px dashed rgba(150,150,150,0.3);
  background:rgba(255,255,255,0.6);
}

.quick-view-seller-ava{
  width:48px;
  height:48px;
  border-radius:12px;
  background:#e8e8e8 center/cover no-repeat;
  border:1px solid rgba(0,0,0,0.08);
  flex-shrink:0;
}

.quick-view-seller-name{
  font-size:16px;
  font-weight:800;
  color:#111;
}

.quick-view-seller-rating{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12px;
  margin-top:8px;
  padding:4px 8px;
  border:2px dashed rgba(150,150,150,0.3);
  border-radius:8px;
  background:rgba(255,255,255,0.6);
}

.quick-view-seller-rating .rating-stars{
  color:#ffa500;
  font-size:14px;
}

.quick-view-seller-rating .rating-value{
  color:#111;
  font-weight:900;
  font-size:13px;
}

.quick-view-description{
  font-size:14px;
  line-height:1.6;
  color:#555;
  max-height:120px;
  overflow-y:auto;
  padding:12px 14px;
  border-radius:10px;
  border:2px dashed rgba(150,150,150,0.3);
  background:rgba(255,255,255,0.6);
  word-wrap:break-word;
  overflow-wrap:break-word;
  word-break:break-word;
}

.quick-view-actions{
  display:flex;
  gap:10px;
  margin-top:auto;
}

.quick-view-actions .btn{
  flex:1;
  width:100%;
}

@media (max-width:768px){
  .quick-view-body{
    grid-template-columns:1fr;
    padding:20px;
  }

  .quick-view-main-image{
    height:300px;
  }

  .quick-view-content{
    width:95%;
    max-height:90vh;
  }
}
