/* =========================================================
   MYTT GEAR MARKET — isolated add-on styles
   This file intentionally uses mytt-market-* names only so
   it does not interfere with the existing MYTT website CSS.
   ========================================================= */

.mytt-market-section{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
  padding:76px 0 56px;
}

.mytt-market-head{
  align-items:flex-end;
  gap:20px;
}

.mytt-market-head h2{
  margin-bottom:8px;
}

.mytt-market-subtitle{
  margin:0;
  color:#9ea4ad;
  font-size:15px;
  line-height:1.6;
}

.mytt-market-sell-button{
  flex:0 0 auto;
  min-height:48px;
  padding:0 22px;
  border:1px solid rgba(255,65,65,.68);
  border-radius:12px;
  background:linear-gradient(180deg,#f13a3a,#b91119);
  color:#fff;
  font:900 14px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(206,20,27,.22),inset 0 1px 0 rgba(255,255,255,.2);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

.mytt-market-sell-button:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  box-shadow:0 15px 34px rgba(206,20,27,.3),inset 0 1px 0 rgba(255,255,255,.2);
}

.mytt-market-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 190px 180px;
  gap:12px;
  margin-top:24px;
}

.mytt-market-toolbar input,
.mytt-market-toolbar select,
.mytt-market-field input,
.mytt-market-field select,
.mytt-market-field textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.11);
  border-radius:12px;
  outline:0;
  background:rgba(255,255,255,.05);
  color:#fff;
  font:700 14px/1.35 Arial,Helvetica,sans-serif;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.mytt-market-toolbar input,
.mytt-market-toolbar select{
  height:48px;
  padding:0 14px;
}

.mytt-market-toolbar select,
.mytt-market-field select{
  color-scheme:dark;
}

.mytt-market-search-wrap{
  position:relative;
  display:block;
}

.mytt-market-search-wrap>span{
  position:absolute;
  z-index:1;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#737a84;
  font-size:21px;
  pointer-events:none;
}

.mytt-market-search-wrap input{
  padding-left:44px;
}

.mytt-market-toolbar input:focus,
.mytt-market-toolbar select:focus,
.mytt-market-field input:focus,
.mytt-market-field select:focus,
.mytt-market-field textarea:focus{
  border-color:rgba(255,64,64,.7);
  background:rgba(255,255,255,.065);
  box-shadow:0 0 0 3px rgba(239,49,49,.12);
}

.mytt-market-info-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:14px;
  padding:12px 15px;
  border:1px solid rgba(239,68,68,.16);
  border-radius:12px;
  background:linear-gradient(90deg,rgba(239,68,68,.07),rgba(255,255,255,.025));
  color:#b8bdc6;
  font-size:12px;
  font-weight:800;
}

.mytt-market-info-strip span::first-letter{
  color:#ef4444;
}

.mytt-market-status{
  min-height:20px;
  margin:18px 2px 10px;
  color:#7f8792;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.mytt-market-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.mytt-market-card{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:linear-gradient(155deg,rgba(255,255,255,.072),rgba(255,255,255,.026));
  box-shadow:0 18px 42px rgba(0,0,0,.24);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.mytt-market-card:hover{
  transform:translateY(-3px);
  border-color:rgba(239,68,68,.36);
  box-shadow:0 23px 48px rgba(0,0,0,.34),0 0 24px rgba(239,68,68,.05);
}

.mytt-market-card-photo{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#0c0d10;
  cursor:pointer;
}

.mytt-market-card-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .28s ease;
}

.mytt-market-card:hover .mytt-market-card-photo img{
  transform:scale(1.025);
}

.mytt-market-card-badges{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  display:flex;
  justify-content:space-between;
  gap:8px;
  pointer-events:none;
}

.mytt-market-badge{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  background:rgba(7,8,10,.74);
  color:#fff;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
  box-shadow:0 5px 16px rgba(0,0,0,.25);
}

.mytt-market-badge.condition{
  border-color:rgba(74,222,128,.3);
  color:#a7f3d0;
}

.mytt-market-card-body{
  padding:16px 16px 17px;
}

.mytt-market-card-brand{
  margin:0 0 5px;
  color:#ef5555;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.13em;
}

.mytt-market-card-title{
  margin:0;
  color:#f7f7f8;
  font-size:20px;
  font-weight:950;
  line-height:1.18;
  overflow-wrap:anywhere;
}

.mytt-market-price{
  display:block;
  margin-top:12px;
  color:#fff;
  font-size:25px;
  font-weight:950;
  letter-spacing:-.03em;
}

.mytt-market-price small{
  color:#9ba1aa;
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em;
}

.mytt-market-card-meta{
  display:grid;
  gap:7px;
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid rgba(255,255,255,.075);
  color:#a6adb6;
  font-size:12px;
  line-height:1.4;
}

.mytt-market-card-meta strong{
  color:#e7e8ea;
}

.mytt-market-card-actions{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:9px;
  margin-top:15px;
}

.mytt-market-details-button,
.mytt-market-contact-button{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 11px;
  border-radius:10px;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  transition:transform .18s ease,filter .18s ease,border-color .18s ease;
}

.mytt-market-details-button{
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.045);
  color:#d9dce1;
}

.mytt-market-contact-button{
  border:1px solid rgba(239,68,68,.55);
  background:linear-gradient(180deg,#e93434,#a90d15);
  color:#fff;
  box-shadow:0 8px 20px rgba(205,26,33,.18);
}

.mytt-market-details-button:hover,
.mytt-market-contact-button:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
}

.mytt-market-empty{
  grid-column:1/-1;
  min-height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:30px;
  border:1px dashed rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.022);
  color:#8f969f;
  text-align:center;
}

.mytt-market-empty span{
  font-size:35px;
  filter:grayscale(.2);
}

.mytt-market-empty strong{
  color:#d9dce0;
  font-size:16px;
}

.mytt-market-empty p{
  max-width:520px;
  margin:0;
  color:#818994;
  font-size:13px;
  line-height:1.55;
}

.mytt-market-empty button{
  margin-top:7px;
}

.mytt-market-disclaimer{
  margin:18px 2px 0;
  color:#6f7680;
  font-size:11px;
  line-height:1.55;
}

/* --------------------------- modal --------------------------- */
.mytt-market-modal{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.mytt-market-modal.hidden{
  display:none!important;
}

.mytt-market-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.mytt-market-modal-card{
  position:relative;
  z-index:1;
  width:min(760px,100%);
  max-height:92vh;
  overflow:auto;
  box-sizing:border-box;
  padding:27px;
  border:1px solid rgba(239,68,68,.4);
  border-radius:23px;
  background:radial-gradient(circle at 90% 5%,rgba(239,68,68,.18),transparent 28%),#0d0f12;
  color:#fff;
  box-shadow:0 35px 100px rgba(0,0,0,.72);
}

.mytt-market-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  width:39px;
  height:39px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}

.mytt-market-modal-head{
  padding-right:45px;
  margin-bottom:22px;
}

.mytt-market-modal-head h2{
  margin:6px 0 8px;
  font-size:33px;
  line-height:1.06;
}

.mytt-market-modal-head>p:last-child{
  max-width:620px;
  margin:0;
  color:#969da7;
  font-size:13px;
  line-height:1.58;
}

.mytt-market-form{
  display:grid;
  gap:16px;
}

.mytt-market-field-grid{
  display:grid;
  gap:14px;
}

.mytt-market-field-grid.two{
  grid-template-columns:1fr 1fr;
}

.mytt-market-field{
  display:grid;
  gap:7px;
}

.mytt-market-field>span{
  color:#dfe2e6;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.mytt-market-field>span em{
  margin-left:4px;
  color:#ef5555;
  font-style:normal;
  font-size:9px;
  letter-spacing:.05em;
}

.mytt-market-field input,
.mytt-market-field select{
  height:45px;
  padding:0 13px;
}

.mytt-market-field textarea{
  min-height:102px;
  resize:vertical;
  padding:12px 13px;
}

.mytt-market-field>small{
  color:#737b85;
  font-size:10px;
  line-height:1.45;
}

.mytt-market-photo-note{
  display:grid;
  gap:3px;
  padding:11px 12px;
  border:1px solid rgba(239,68,68,.17);
  border-radius:10px;
  background:rgba(239,68,68,.05);
}

.mytt-market-photo-note strong{
  color:#e7e8eb;
  font-size:12px;
}

.mytt-market-photo-note small{
  color:#969da6;
  font-size:10px;
  line-height:1.5;
}

.mytt-market-photo-picker{
  min-height:70px;
  display:flex;
  align-items:center;
  gap:12px;
  box-sizing:border-box;
  padding:13px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease;
}

.mytt-market-photo-picker:hover{
  border-color:rgba(239,68,68,.45);
  background:rgba(239,68,68,.045);
}

.mytt-market-photo-picker>span:first-child{
  font-size:25px;
}

.mytt-market-photo-picker>span:last-child{
  display:grid;
  gap:4px;
}

.mytt-market-photo-picker strong{
  color:#e5e7ea;
  font-size:13px;
}

.mytt-market-photo-picker small{
  color:#7d858f;
  font-size:10px;
}

.mytt-market-photo-input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

.mytt-market-photo-preview-wrap{
  position:relative;
  width:min(310px,100%);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:13px;
  background:#090a0c;
}

.mytt-market-photo-preview-wrap.hidden{
  display:none!important;
}

.mytt-market-photo-preview-wrap img{
  width:100%;
  aspect-ratio:4/3;
  display:block;
  object-fit:cover;
}

.mytt-market-photo-preview-wrap button{
  position:absolute;
  right:9px;
  bottom:9px;
  min-height:31px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

.mytt-market-consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#8f969f;
  font-size:11px;
  line-height:1.55;
}

.mytt-market-consent input{
  margin-top:2px;
  accent-color:#e52b32;
}

.mytt-market-form-status{
  min-height:18px;
  color:#a9b0b9;
  font-size:12px;
  font-weight:800;
  line-height:1.45;
}

.mytt-market-form-status.error{color:#fca5a5}
.mytt-market-form-status.success{color:#86efac}
.mytt-market-form-status.loading{color:#fde68a}

.mytt-market-submit{
  min-height:49px;
  border:1px solid rgba(255,69,69,.58);
  border-radius:12px;
  background:linear-gradient(180deg,#ee3939,#ad1119);
  color:#fff;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 11px 25px rgba(196,20,28,.22);
}

.mytt-market-submit:disabled{
  cursor:wait;
  opacity:.65;
}

.mytt-market-form-note{
  margin:0;
  color:#707782;
  font-size:10px;
  line-height:1.5;
  text-align:center;
}

.mytt-market-submit-frame{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
  border:0;
}

.mytt-market-success{
  padding:30px 8px 12px;
  text-align:center;
}

.mytt-market-success.hidden{display:none!important}

.mytt-market-success>div{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin:0 auto 15px;
  border:1px solid rgba(74,222,128,.35);
  border-radius:50%;
  background:rgba(34,197,94,.11);
  color:#86efac;
  font-size:29px;
  font-weight:950;
}

.mytt-market-success h3{
  margin:0 0 8px;
  font-size:26px;
}

.mytt-market-success p{
  margin:0;
  color:#969da7;
}

/* ---------------------- detail modal ---------------------- */
.mytt-market-detail-card{
  width:min(820px,100%);
}

.mytt-market-detail-layout{
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);
  gap:24px;
  align-items:start;
}

.mytt-market-detail-photo{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  background:#07080a;
}

.mytt-market-detail-photo img{
  width:100%;
  aspect-ratio:4/3;
  display:block;
  object-fit:cover;
}

.mytt-market-detail-category{
  margin:0 0 8px;
  color:#ef5555;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.mytt-market-detail-info h2{
  margin:0;
  padding-right:35px;
  color:#fff;
  font-size:31px;
  line-height:1.06;
}

.mytt-market-detail-price{
  display:block;
  margin:14px 0;
  color:#fff;
  font-size:29px;
  font-weight:950;
}

.mytt-market-detail-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:15px;
}

.mytt-market-detail-chips span{
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#b9bec6;
  font-size:10px;
  font-weight:850;
}

.mytt-market-detail-description{
  margin:0 0 17px;
  color:#a7adb5;
  font-size:13px;
  line-height:1.65;
  white-space:pre-wrap;
}

.mytt-market-detail-seller{
  display:grid;
  gap:6px;
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:#9ca3ad;
  font-size:11px;
}

.mytt-market-detail-seller strong{
  color:#e9eaec;
  font-size:13px;
}

.mytt-market-detail-contact{
  min-height:47px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  border:1px solid rgba(239,68,68,.5);
  border-radius:11px;
  background:linear-gradient(180deg,#e93434,#a90d15);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:950;
}

body.mytt-market-modal-open{
  overflow:hidden;
}

@media(max-width:900px){
  .mytt-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mytt-market-toolbar{grid-template-columns:1fr 1fr}
  .mytt-market-search-wrap{grid-column:1/-1}
}

@media(max-width:680px){
  .mytt-market-section{
    width:min(100% - 28px,1180px);
    padding-top:56px;
  }
  .mytt-market-head{
    align-items:flex-start;
  }
  .mytt-market-sell-button{
    width:100%;
  }
  .mytt-market-grid{grid-template-columns:1fr}
  .mytt-market-toolbar{grid-template-columns:1fr}
  .mytt-market-search-wrap{grid-column:auto}
  .mytt-market-info-strip{
    display:grid;
    gap:8px;
  }
  .mytt-market-modal{
    padding:0;
    align-items:flex-end;
  }
  .mytt-market-modal-card{
    width:100%;
    max-height:94vh;
    border-radius:22px 22px 0 0;
    padding:23px 16px 24px;
  }
  .mytt-market-field-grid.two{grid-template-columns:1fr}
  .mytt-market-detail-layout{grid-template-columns:1fr}
  .mytt-market-detail-photo{
    width:min(100%,420px);
  }
}


/* =========================================================
   MYTT MARKET — PREMIUM INTEGRATED LAYOUT
   ========================================================= */
#market{
  scroll-margin-top:108px;
}

.mytt-market-section{
  width:min(1480px,calc(100% - 42px));
  padding-top:76px;
}

.mytt-market-hero{
  position:relative;
  overflow:hidden;
  min-height:250px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:32px;
  align-items:center;
  padding:34px 36px;
  border:1px solid rgba(239,68,68,.30);
  border-radius:24px;
  background:
    radial-gradient(circle at 82% 40%,rgba(239,68,68,.16),transparent 30%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0 1px,transparent 1px 16px),
    linear-gradient(120deg,#0b0d10,#111217 68%,#21090b);
  box-shadow:0 26px 68px rgba(0,0,0,.34);
}

.mytt-market-hero::after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-150px;
  width:500px;
  height:300px;
  border:1px solid rgba(239,68,68,.18);
  transform:rotate(-14deg);
  box-shadow:0 0 60px rgba(239,68,68,.08);
  pointer-events:none;
}

.mytt-market-hero-copy{
  position:relative;
  z-index:1;
}

.mytt-market-hero h2{
  margin:4px 0 10px;
  color:#fff;
  font-size:clamp(42px,5vw,74px);
  line-height:.95;
  font-weight:950;
  font-style:italic;
  text-transform:uppercase;
  letter-spacing:-.035em;
}

.mytt-market-subtitle{
  max-width:760px;
  font-size:15px;
}

.mytt-market-trust-grid{
  max-width:860px;
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:rgba(0,0,0,.25);
}

.mytt-market-trust-item{
  min-height:68px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
}

.mytt-market-trust-item+ .mytt-market-trust-item{
  border-left:1px solid rgba(255,255,255,.08);
}

.mytt-market-trust-item>span{
  width:35px;
  height:35px;
  flex:0 0 35px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(239,68,68,.12);
  color:#ff4a4a;
  font-weight:950;
}

.mytt-market-trust-item strong,
.mytt-market-trust-item small{
  display:block;
}

.mytt-market-trust-item strong{
  color:#fff;
  font-size:12px;
}

.mytt-market-trust-item small{
  margin-top:3px;
  color:#9299a3;
  font-size:10px;
}

.mytt-market-hero-action{
  position:relative;
  z-index:1;
  display:grid;
  justify-items:center;
  gap:18px;
}

.mytt-market-hero-icon{
  width:150px;
  height:150px;
  display:grid;
  place-items:center;
  border:1px solid rgba(239,68,68,.25);
  border-radius:50%;
  background:
    radial-gradient(circle at 40% 30%,rgba(255,255,255,.08),transparent 28%),
    rgba(0,0,0,.34);
  font-size:78px;
  filter:drop-shadow(0 12px 28px rgba(239,68,68,.24));
}

.mytt-market-hero-action .mytt-market-sell-button{
  width:100%;
  min-height:52px;
}

.mytt-market-toolbar{
  grid-template-columns:minmax(300px,1fr) 220px 200px;
  margin-top:20px;
}

.mytt-market-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.mytt-market-card-title{
  min-height:47px;
}

.mytt-market-details-button,
.mytt-market-contact-button{
  border:0;
}

@media(max-width:1180px){
  .mytt-market-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .mytt-market-hero{
    grid-template-columns:1fr;
  }

  .mytt-market-hero-action{
    grid-template-columns:110px 1fr;
    justify-items:stretch;
    align-items:center;
  }

  .mytt-market-hero-icon{
    width:100px;
    height:100px;
    font-size:51px;
  }

  .mytt-market-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:680px){
  #market{
    scroll-margin-top:90px;
  }

  .mytt-market-section{
    width:min(100% - 24px,1480px);
  }

  .mytt-market-hero{
    padding:25px 18px;
    border-radius:19px;
  }

  .mytt-market-hero h2{
    font-size:42px;
  }

  .mytt-market-trust-grid{
    grid-template-columns:1fr;
  }

  .mytt-market-trust-item+ .mytt-market-trust-item{
    border-left:0;
    border-top:1px solid rgba(255,255,255,.08);
  }

  .mytt-market-hero-action{
    grid-template-columns:1fr;
  }

  .mytt-market-hero-icon{
    display:none;
  }

  .mytt-market-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   MARKET MULTI-PHOTO UPLOAD + GALLERY
   ========================================================= */
.mytt-market-photo-preview-wrap{
  display:block;
}
.mytt-market-photo-preview-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.mytt-market-photo-preview-item{
  position:relative;
  overflow:hidden;
  aspect-ratio:1/1;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#080a0d;
}
.mytt-market-photo-preview-item:first-child{
  border-color:rgba(239,68,68,.75);
  box-shadow:0 0 16px rgba(239,68,68,.13);
}
.mytt-market-photo-preview-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.mytt-market-photo-preview-item>span{
  position:absolute;
  left:6px;
  bottom:6px;
  padding:4px 6px;
  border-radius:6px;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
}
.mytt-market-photo-preview-item>button{
  position:absolute;
  top:6px;
  right:6px;
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.mytt-market-photo-preview-actions{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.mytt-market-photo-preview-actions small{
  color:#949ba5;
}
.mytt-market-photo-preview-actions button{
  border:0;
  background:transparent;
  color:#ff7373;
  font-weight:850;
  cursor:pointer;
}
.mytt-market-detail-photo-column{
  min-width:0;
}
.mytt-market-detail-thumbs{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.mytt-market-detail-thumb{
  overflow:hidden;
  aspect-ratio:1/1;
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background:#080a0d;
  cursor:pointer;
  opacity:.68;
  transition:.16s ease;
}
.mytt-market-detail-thumb.active,
.mytt-market-detail-thumb:hover{
  opacity:1;
  border-color:#ef4444;
  box-shadow:0 0 14px rgba(239,68,68,.18);
}
.mytt-market-detail-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
@media(max-width:650px){
  .mytt-market-photo-preview-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .mytt-market-photo-preview-actions{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* =========================================================
   MYTT MARKET — COMPACT HERO
   Keeps the premium look while bringing listings higher.
   ========================================================= */
@media(min-width:681px){
  .mytt-market-section{
    padding-top:54px;
  }

  .mytt-market-hero{
    min-height:190px;
    grid-template-columns:minmax(0,1fr) 245px;
    gap:24px;
    padding:24px 28px;
    border-radius:20px;
  }

  .mytt-market-hero h2{
    margin:2px 0 8px;
    font-size:clamp(38px,4.15vw,60px);
    line-height:.96;
  }

  .mytt-market-subtitle{
    max-width:720px;
    font-size:14px;
    line-height:1.55;
  }

  .mytt-market-trust-grid{
    max-width:800px;
    margin-top:17px;
  }

  .mytt-market-trust-item{
    min-height:56px;
    gap:10px;
    padding:9px 13px;
  }

  .mytt-market-trust-item>span{
    width:31px;
    height:31px;
    flex-basis:31px;
  }

  .mytt-market-trust-item strong{
    font-size:11px;
  }

  .mytt-market-trust-item small{
    font-size:9px;
  }

  .mytt-market-hero-action{
    gap:12px;
  }

  .mytt-market-hero-icon{
    width:108px;
    height:108px;
    font-size:56px;
  }

  .mytt-market-hero-action .mytt-market-sell-button{
    min-height:46px;
    font-size:14px;
  }

  .mytt-market-toolbar{
    margin-top:14px;
  }
}

/* Slightly tighter large desktop spacing */
@media(min-width:1200px){
  .mytt-market-section{
    padding-top:50px;
  }

  .mytt-market-hero{
    min-height:184px;
  }
}


/* =========================================================
   MYTT MARKET — MINIMAL HERO
   ========================================================= */
.mytt-market-hero{
  min-height:158px;
  grid-template-columns:minmax(0,1fr) 220px;
  padding-top:20px;
  padding-bottom:20px;
}

.mytt-market-hero h2{
  margin-bottom:7px;
}

.mytt-market-subtitle{
  margin-bottom:0;
  max-width:650px;
  font-size:14px;
}

.mytt-market-hero-action{
  gap:10px;
}

.mytt-market-hero-icon{
  width:92px;
  height:92px;
  font-size:48px;
}

.mytt-market-hero-action .mytt-market-sell-button{
  min-height:44px;
}

.mytt-market-toolbar{
  margin-top:12px;
}

.mytt-market-safety-strip-minimal{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:24px;
  padding:10px 2px 0;
  border:0;
  background:transparent;
  box-shadow:none;
}

.mytt-market-safety-strip-minimal span{
  color:#9da3ad;
  font-size:11px;
  font-weight:800;
}

@media(max-width:680px){
  .mytt-market-hero{
    min-height:0;
    padding:20px 16px;
  }

  .mytt-market-hero h2{
    font-size:36px;
  }

  .mytt-market-safety-strip-minimal{
    gap:12px;
    flex-wrap:wrap;
  }
}


/* =========================================================
   MARKET — MATCH GLOBAL MYTT DESIGN SYSTEM
   ========================================================= */
.mytt-market-section{
  padding-top:54px !important;
}

.mytt-market-hero{
  min-height:148px !important;
  padding:20px 24px !important;
  border-radius:18px !important;
  border-color:rgba(239,68,68,.28) !important;
  box-shadow:0 18px 46px rgba(0,0,0,.34),0 0 20px rgba(239,68,68,.055) !important;
}

.mytt-market-hero h2{
  margin:2px 0 7px !important;
  color:#f4f5f7;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(34px,3.8vw,48px) !important;
  line-height:.98 !important;
  font-style:italic;
  font-weight:900 !important;
  letter-spacing:-.025em !important;
}

.mytt-market-subtitle{
  max-width:620px !important;
  color:#9ca2ac !important;
  font-size:13px !important;
  line-height:1.5 !important;
}

.mytt-market-hero-icon{
  width:84px !important;
  height:84px !important;
  font-size:44px !important;
}

.mytt-market-sell-button,
.mytt-market-submit{
  min-height:46px !important;
  border-radius:12px !important;
  font-size:13px !important;
  font-weight:900 !important;
  box-shadow:0 10px 24px rgba(190,20,28,.20) !important;
}

.mytt-market-toolbar{
  margin-top:12px !important;
  gap:10px !important;
}

.mytt-market-toolbar input,
.mytt-market-toolbar select{
  height:46px !important;
  border-radius:12px !important;
  border-color:rgba(255,255,255,.11) !important;
  background:rgba(255,255,255,.042) !important;
  font-size:13px !important;
}

.mytt-market-info-strip{
  gap:18px !important;
  margin-top:10px !important;
  padding:8px 2px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#8f96a0 !important;
  font-size:10px !important;
}

.mytt-market-status{
  margin:14px 2px 9px !important;
  font-size:10px !important;
}

.mytt-market-card{
  border-radius:18px !important;
  border-color:rgba(239,68,68,.20) !important;
  box-shadow:0 18px 46px rgba(0,0,0,.28),0 0 18px rgba(239,68,68,.04) !important;
}

.mytt-market-card:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(239,68,68,.40) !important;
  box-shadow:0 21px 50px rgba(0,0,0,.34),0 0 20px rgba(239,68,68,.065) !important;
}

.mytt-market-details-button,
.mytt-market-contact-button{
  min-height:40px !important;
  border-radius:10px !important;
  font-size:11px !important;
}

.mytt-market-details-button{
  background:rgba(255,255,255,.035) !important;
}

.mytt-market-contact-button{
  box-shadow:0 7px 16px rgba(190,20,28,.15) !important;
}

@media(max-width:680px){
  .mytt-market-section{
    padding-top:40px !important;
  }

  .mytt-market-hero{
    padding:18px 16px !important;
  }

  .mytt-market-hero h2{
    font-size:34px !important;
  }
}


/* =========================================================
   MARKET — PREMIUM POLISH V2
   ========================================================= */
.mytt-market-card{
  background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.018)) !important;
  border-color:rgba(255,255,255,.09) !important;
  box-shadow:0 16px 36px rgba(0,0,0,.28) !important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease !important;
}
.mytt-market-card:hover{
  transform:translateY(-3px) !important;
  border-color:rgba(239,68,68,.32) !important;
  box-shadow:0 20px 42px rgba(0,0,0,.33) !important;
}
.mytt-market-card-image{overflow:hidden}
.mytt-market-card-image img{transition:transform .28s ease,filter .28s ease}
.mytt-market-card:hover .mytt-market-card-image img{
  transform:scale(1.035);
  filter:contrast(1.02) saturate(1.03);
}
.mytt-market-price{
  color:#ff5252 !important;
  text-shadow:none !important;
}
.mytt-market-hero{
  box-shadow:0 16px 38px rgba(0,0,0,.30),0 0 0 1px rgba(255,255,255,.012) inset !important;
}


/* =========================================================
   MARKET DETAIL PHOTO — FULL IMAGE VIEW
   Show the entire seller-uploaded photo without cropping.
   ========================================================= */

.mytt-market-detail-photo{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  aspect-ratio:4/3;
  overflow:hidden !important;
  background:
    radial-gradient(circle at center,rgba(255,255,255,.025),transparent 62%),
    #07080a !important;
}

.mytt-market-detail-photo img{
  width:100% !important;
  height:100% !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  background:#07080a;
}

/* Thumbnails also show the full uploaded image. */
.mytt-market-detail-thumb{
  background:#07080a !important;
}

.mytt-market-detail-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
}

/* Keep product-list card images unchanged; only detail/gallery is full-view. */
@media(max-width:680px){
  .mytt-market-detail-photo{
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:4/3;
  }
}

/* =========================================================
   MYTT MOBILE MARKET POLISH V2
   ========================================================= */
@media(max-width:680px){
  #market .mytt-market-hero{
    padding:15px 14px !important;
    border-radius:18px !important;
    margin-bottom:11px !important;
  }
  #market .mytt-market-hero h2{
    margin-bottom:6px !important;
    font-size:clamp(29px,8vw,37px) !important;
    line-height:.95 !important;
  }
  #market .mytt-market-subtitle{
    margin:0 !important;
    max-width:33ch !important;
    font-size:10px !important;
    line-height:1.35 !important;
  }
  #market .mytt-market-hero-action{
    gap:8px !important;
  }
  #market .mytt-market-hero-icon{
    font-size:29px !important;
  }
  #market .mytt-market-sell-button{
    min-height:46px !important;
    padding:0 14px !important;
    border-radius:13px !important;
    font-size:12px !important;
  }
  #market .mytt-market-toolbar{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    margin-bottom:9px !important;
  }
  #market .mytt-market-search-wrap{
    grid-column:1 / -1 !important;
  }
  #market .mytt-market-toolbar input,
  #market .mytt-market-toolbar select{
    height:46px !important;
    min-height:46px !important;
    border-radius:13px !important;
    font-size:11px !important;
  }
  #market .mytt-market-info-strip{
    gap:8px !important;
    padding:9px 10px !important;
    border-radius:13px !important;
    font-size:9px !important;
  }
  #market .mytt-market-grid{
    gap:11px !important;
  }
  #market .mytt-market-card{
    border-radius:17px !important;
    box-shadow:0 9px 20px rgba(0,0,0,.22) !important;
  }
}
