/* oBeynet V4.0 — discovery and seller intelligence */
.v4-contact-breakdown{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 24px}.v4-contact-breakdown span{background:#fff;border:1px solid #e7e9ef;border-radius:999px;padding:9px 14px;font-size:.9rem}.v4-similar{padding-top:0}.v4-recent{margin-top:30px}.v4-prostats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:720px){.v4-prostats{grid-template-columns:repeat(2,minmax(0,1fr))}.v4-contact-breakdown{display:grid;grid-template-columns:repeat(3,1fr)}.v4-contact-breakdown span{text-align:center;padding:10px 6px;font-size:.78rem}.v4-similar{padding-bottom:96px}}

/* V4.0.1 — compact media cards for discovery rails */
.v4-similar .v3rail,.v4-recent .v3rail{align-items:stretch}
.v4-similar .v3card,.v4-recent .v3card{overflow:hidden}
.v4-similar .v3card>img,.v4-recent .v3card>img{display:block;width:100%;height:180px;max-height:180px;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:14px 14px 0 0}
.v4-similar .v3ph,.v4-recent .v3ph{height:180px;max-height:180px;aspect-ratio:4/3;display:grid;place-items:center}
@media(max-width:720px){.v4-similar .v3card>img,.v4-recent .v3card>img,.v4-similar .v3ph,.v4-recent .v3ph{height:132px;max-height:132px}.v4-similar .v3card,.v4-recent .v3card{min-width:160px;max-width:190px}}
@media(max-width:380px){.v4-similar .v3card>img,.v4-recent .v3card>img,.v4-similar .v3ph,.v4-recent .v3ph{height:118px;max-height:118px}.v4-similar .v3card,.v4-recent .v3card{min-width:148px;max-width:172px}}

/* V4.0.2 — Responsive Media Fix
   Desktop: compact discovery cards without aggressive cropping.
   Mobile: keep discovery cards compact and constrain listing detail gallery. */
@media (min-width: 721px){
  .v4-similar .v3rail,.v4-recent .v3rail{gap:16px;overflow-x:auto;padding-bottom:8px}
  .v4-similar .v3card,.v4-recent .v3card{flex:0 0 210px;min-width:210px;max-width:210px}
  .v4-similar .v3card>img,.v4-recent .v3card>img{
    width:100%;height:150px;max-height:150px;aspect-ratio:auto;
    object-fit:contain;object-position:center;background:#f5f6f8;
  }
  .v4-similar .v3ph,.v4-recent .v3ph{height:150px;max-height:150px;aspect-ratio:auto;background:#f5f6f8}
}
@media (max-width: 720px){
  .listing-gallery{max-height:360px;overflow-x:auto;overflow-y:hidden;align-items:stretch;scroll-snap-type:x mandatory}
  .listing-gallery .listing-photo{height:340px!important;max-height:340px!important;min-height:0!important;scroll-snap-align:start;background:#f5f6f8}
  .listing-gallery .listing-photo.main{height:340px!important;max-height:340px!important;min-height:0!important}
  .listing-gallery .listing-photo img{display:block;width:100%!important;height:100%!important;max-height:340px!important;object-fit:contain!important;object-position:center!important}
  .listing-photo-empty{height:340px!important;max-height:340px!important;min-height:0!important}
}
@media (max-width: 420px){
  .listing-gallery{max-height:330px}
  .listing-gallery .listing-photo,.listing-gallery .listing-photo.main,.listing-gallery .listing-photo img,.listing-photo-empty{height:310px!important;max-height:310px!important}
}
@media (max-width: 360px){
  .listing-gallery{max-height:300px}
  .listing-gallery .listing-photo,.listing-gallery .listing-photo.main,.listing-gallery .listing-photo img,.listing-photo-empty{height:280px!important;max-height:280px!important}
}

/* V4.1 — Discovery, Ranking & Seller Analytics */
.v41-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 8px}
.v41-periods>div{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff;border:1px solid #e7e9ef;border-radius:16px;padding:14px 16px}
.v41-periods span{color:#68707d;font-size:.9rem;text-align:right}
.v41-listing-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.v41-listing-main{flex:1;min-width:0}
.v41-quality{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:.82rem;color:#68707d}
.v41-quality>div{height:7px;background:#eceff3;border-radius:999px;overflow:hidden;flex:1;max-width:240px}
.v41-quality i{display:block;height:100%;background:currentColor;border-radius:999px}
.v41-tips{margin-top:8px;font-size:.82rem;color:#68707d;line-height:1.45}
.v41-near,.v41-popular{margin-top:30px}
.v41-near .v3rail,.v41-popular .v3rail{padding-bottom:8px}
@media(max-width:720px){.v41-periods{grid-template-columns:1fr}.v41-periods>div{align-items:flex-start;flex-direction:column;gap:4px}.v41-periods span{text-align:left}.v41-listing-row{flex-direction:column}.v41-listing-row .inline-form{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.v41-listing-row .inline-form .btn{text-align:center;padding-left:6px;padding-right:6px}.v41-quality>div{max-width:none}}
/* V4.2 Pro Sellers & Shops */
.shop-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:20px 0}.shop-plan{display:flex;flex-direction:column;gap:10px}.shop-plan .price{font-size:1.55rem}.shop-plan .btn{margin-top:auto}.proshop{overflow:hidden}.procover{max-height:320px;object-fit:cover}.prologo{width:92px;height:92px;object-fit:cover}
@media(max-width:640px){.shop-plan-grid{grid-template-columns:1fr}.procover{max-height:210px}.prologo{width:72px;height:72px}}

/* V4.2.1 — My Shop Dashboard */
.myshop-page{max-width:1240px}.myshop-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:26px 0 18px}.myshop-hero h1{margin:.25rem 0}.myshop-hero p{margin:0;color:#68707d}.myshop-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.myshop-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:10px 0 22px}.myshop-kpis>div{background:#fff;border:1px solid #e7e9ef;border-radius:16px;padding:14px}.myshop-kpis span{display:block;color:#68707d;font-size:.78rem}.myshop-kpis b{display:block;font-size:1.35rem;margin-top:5px}.myshop-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}.myshop-side{display:grid;gap:16px;position:sticky;top:82px}.myshop-preview{overflow:hidden;border:1px solid #eceef2;border-radius:16px;background:#fafbfc}.myshop-cover{display:block;width:100%;height:120px;object-fit:cover;background:#eef0f3}.myshop-cover.empty{background:linear-gradient(135deg,#f0f2f5,#e4e8ee)}.myshop-preview-id{display:flex;gap:12px;align-items:center;padding:14px}.myshop-preview-id>img,.myshop-preview-id>span{width:52px;height:52px;border-radius:14px;object-fit:cover;background:#111;color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 auto}.myshop-preview-id small{display:block;color:#68707d;margin-top:3px}.myshop-planbox p{color:#68707d}.myshop-main{display:grid;gap:20px}.myshop-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.myshop-title h2{margin:.2rem 0}.myshop-title p{margin:4px 0 0;color:#68707d}.myshop-form .settings-form{margin:0}.myshop-form small{display:block;color:#7b8492;margin-top:5px}.myshop-save-mobile{display:none}.myshop-products{display:grid;gap:10px}.myshop-product{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:13px;padding:10px;border:1px solid #eceef2;border-radius:14px}.myshop-product>img,.myshop-product-ph{width:76px;height:66px;object-fit:cover;border-radius:10px;background:#f1f3f5;display:grid;place-items:center}.myshop-product span{display:block;color:#68707d;font-size:.82rem;margin-top:4px}.myshop-product-actions{display:flex;gap:10px;flex-wrap:wrap}.myshop-product-actions a{font-size:.82rem;font-weight:700}.myshop-catalog .empty-state{padding:28px 12px}
@media(max-width:980px){.myshop-kpis{grid-template-columns:repeat(3,1fr)}.myshop-layout{grid-template-columns:1fr}.myshop-side{position:static;grid-template-columns:1fr 1fr}}
@media(max-width:640px){.myshop-hero{align-items:flex-start;flex-direction:column;padding-top:16px}.myshop-hero-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.myshop-kpis{grid-template-columns:repeat(2,1fr);gap:8px}.myshop-kpis>div{padding:12px}.myshop-layout{gap:14px}.myshop-side{grid-template-columns:1fr}.myshop-title{align-items:flex-start}.myshop-form>.myshop-title>.btn{display:none}.myshop-save-mobile{display:block;margin-top:22px}.myshop-save-mobile .btn{width:100%;min-height:48px}.myshop-product{grid-template-columns:64px minmax(0,1fr)}.myshop-product>img,.myshop-product-ph{width:64px;height:60px}.myshop-product-actions{grid-column:1/-1;border-top:1px solid #eef0f3;padding-top:9px;justify-content:space-around}.myshop-catalog>.myshop-title{align-items:center}.myshop-catalog>.myshop-title .btn{white-space:nowrap}}


/* V4.5.1 — Homepage desktop density + AdSense manager */
.ob-ad{width:100%;max-width:1100px;margin:24px auto;padding:8px 0;text-align:center;overflow:hidden;min-height:90px}.ob-ad>span{display:block;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#8a919c;margin-bottom:6px}
@media (min-width: 761px){
 .v41-near .v3rail,.v41-popular .v3rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;overflow:visible}
 .v41-near .v3card,.v41-popular .v3card{min-width:0!important;max-width:none!important;width:auto!important;overflow:hidden}
 .v41-near .v3card>img,.v41-popular .v3card>img{display:block;width:100%;height:145px;max-height:145px;object-fit:contain;object-position:center;background:#f5f6f8}
 .v41-near .v3ph,.v41-popular .v3ph{height:145px;max-height:145px;background:#f5f6f8}
 .v41-near .v3cardbody,.v41-popular .v3cardbody{padding:11px 12px}
 .v41-near .v3cardbody strong,.v41-popular .v3cardbody strong{font-size:.92rem;line-height:1.3}
}
@media (min-width: 761px) and (max-width: 1050px){.v41-near .v3rail,.v41-popular .v3rail{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* V4.5.2 — homepage desktop compact cards */
@media (min-width: 1051px){
  .v3main .v3grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
  .v3main .v3grid .v3card>img,.v3main .v3grid .v3ph{height:128px!important;max-height:128px!important;aspect-ratio:auto!important;object-fit:contain!important;background:#f6f7f8!important}
  .v3main .v3rail{gap:14px!important}
  .v3main .v3rail .v3card{flex:0 0 180px!important;min-width:180px!important;max-width:180px!important;width:180px!important}
  .v3main .v3rail .v3card>img,.v3main .v3rail .v3ph{width:100%!important;height:128px!important;max-height:128px!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;background:#f6f7f8!important}
  .v3main .v3cardbody{padding:10px!important}
  .v3main .v3cardbody strong{font-size:.9rem!important;line-height:1.25!important}
  .v3main .v3price{font-size:.95rem!important}
  .v41-near .v3rail,.v41-popular .v3rail{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
  .v41-near .v3card,.v41-popular .v3card{width:auto!important;min-width:0!important;max-width:none!important}
  .v41-near .v3card>img,.v41-popular .v3card>img,.v41-near .v3ph,.v41-popular .v3ph{height:125px!important;max-height:125px!important}
}
