/* Centralized from elan.evi.az/app/views/stores.php — 2026-09-27 */

.stores-section,
.stores-section *{box-sizing:border-box;}

.stores-section{
  width:100%;
  max-width:1360px;
  margin:0 auto;
  padding:0 24px 34px;
}

.stores-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}

.stores-head h5{
  margin:0;
  font-size:21px;
  line-height:1.2;
  font-weight:900;
  color:#111827;
}

.stores-count{
  min-width:40px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#e8f8f5;
  color:#009e8e;
  font-size:11px;
  font-weight:900;
}


/* =========================================================
   STORE LIVE SEARCH
========================================================= */
.stores-search{
  position:relative;
  width:100%;
  margin:0 0 14px;
}

.stores-search-box{
  width:100%;
  min-height:52px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 38px;
  align-items:center;
  gap:4px;
  padding:5px 7px;
  border:1px solid #e1e7ea;
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 20px rgba(16,24,40,.05);
  transition:border-color .16s ease,box-shadow .16s ease;
}

.stores-search-box:focus-within{
  border-color:rgba(0,158,142,.42);
  box-shadow:
    0 0 0 3px rgba(0,158,142,.07),
    0 7px 22px rgba(16,24,40,.06);
}

.stores-search-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#eef9f7;
  color:#009e8e;
  font-size:14px;
}

.stores-search-input{
  width:100%;
  min-width:0;
  height:40px;
  padding:0 6px;
  border:0;
  outline:0;
  background:transparent;
  color:#182126;
  font-size:13px;
  font-weight:700;
}

.stores-search-input::placeholder{
  color:#9aa3aa;
  font-weight:600;
}

.stores-search-clear{
  width:34px;
  height:34px;
  display:none;
  place-items:center;
  padding:0;
  border:0;
  border-radius:10px;
  background:#f3f5f6;
  color:#7d878f;
  cursor:pointer;
  font-size:12px;
}

.stores-search-clear.show{
  display:grid;
}

.stores-search-meta{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:7px;
  padding:0 2px;
  color:#818b93;
  font-size:9px;
  font-weight:700;
}

.stores-search-meta.show{
  display:flex;
}

.stores-search-meta strong{
  color:#009e8e;
  font-weight:900;
}

.stores-search-empty{
  display:none;
  grid-column:1 / -1;
  padding:48px 18px;
  border:1px dashed #dce4e7;
  border-radius:17px;
  background:#fafcfc;
  text-align:center;
}

.stores-search-empty.show{
  display:block;
}

.stores-search-empty-icon{
  width:52px;
  height:52px;
  margin:0 auto 10px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#edf8f6;
  color:#009e8e;
  font-size:19px;
}

.stores-search-empty strong{
  display:block;
  color:#344049;
  font-size:13px;
  font-weight:900;
}

.stores-search-empty span{
  display:block;
  margin-top:5px;
  color:#8b959c;
  font-size:10px;
  font-weight:650;
}

.store-card.store-search-hidden{
  display:none !important;
}

/* 3 web / 2 mobile */
.stores-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  width:100%;
  margin:0;
  padding:0;
}

/* Kartın özündə HEÇ BİR inner padding yoxdur */
.stores-grid > .store-card{
  display:block;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  border:1px solid #e6eaed;
  box-shadow:0 8px 24px rgba(16,24,40,.055);
  color:#111827;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stores-grid > .store-card:hover{
  transform:translateY(-3px);
  border-color:#d9e1e5;
  box-shadow:0 15px 34px rgba(16,24,40,.09);
  color:#111827;
  text-decoration:none;
}

/* COVER: kartın sol/sağ/yuxarı kənarına SIFIR boşluq */
.store-card-cover{
  position:relative;
  width:100% !important;
  height:168px;
  margin:0 !important;
  padding:0 !important;
  background:#edf1f3;
  overflow:visible;
}

.store-card-cover-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden;
}

.store-card-cover-image img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:cover;
  object-position:center;
}

.store-card-cover-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(7,15,20,.36) 0%,
    rgba(7,15,20,.08) 42%,
    rgba(7,15,20,0) 70%
  );
  pointer-events:none;
}

.store-card-count{
  position:absolute;
  top:10px;
  left:10px;
  z-index:4;
  min-height:28px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 9px;
  border-radius:9px;
  background:rgba(255,255,255,.93);
  border:1px solid rgba(255,255,255,.9);
  backdrop-filter:blur(11px);
  -webkit-backdrop-filter:blur(11px);
  color:#344047;
  box-shadow:0 5px 16px rgba(0,0,0,.07);
  font-size:9px;
  font-weight:900;
}

.store-card-open-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:4;
  min-height:28px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 9px;
  border-radius:999px;
  backdrop-filter:blur(11px);
  -webkit-backdrop-filter:blur(11px);
  font-size:9px;
  font-weight:900;
}

.store-card-open-badge .dot{
  width:7px;
  height:7px;
  border-radius:50%;
}
.store-card-open-badge.open{color:#12824a;background:rgba(239,253,244,.95);border:1px solid rgba(205,240,217,.95);}
.store-card-open-badge.open .dot{background:#12a45a;}
.store-card-open-badge.closed{color:#bd4242;background:rgba(255,242,242,.95);border:1px solid rgba(244,215,215,.95);}
.store-card-open-badge.closed .dot{background:#d64b4b;}
.store-card-open-badge.neutral{color:#69747d;background:rgba(247,248,249,.95);border:1px solid rgba(232,235,238,.95);}
.store-card-open-badge.neutral .dot{background:#9da5ac;}

/* Ünvan cover-in sol aşağısında */
.store-card-cover-address{
  position:absolute;
  left:11px;
  bottom:10px;
  z-index:4;
  max-width:calc(100% - 88px);
  min-height:27px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border-radius:9px;
  background:rgba(17,24,39,.58);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  color:#fff;
  font-size:9px;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.store-card-cover-address i{
  flex:0 0 auto;
  font-size:9px;
  color:#fff;
}

.store-card-cover-address span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Logo cover ilə content sərhədində */
.store-card-logo{
  position:absolute;
  right:12px;
  bottom:-28px;
  z-index:5;
  width:62px;
  height:62px;
  padding:3px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e7ecef;
  box-shadow:0 9px 22px rgba(0,0,0,.15);
}

.store-card-logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:14px;
  background:#fff;
}

/* Padding YALNIZ aşağı məlumat sahəsindədir */
.store-card-body{
  position:relative;
  margin:0;
  padding:36px 13px 11px;
  background:#fff;
}

.store-card-name-row{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  padding-right:54px;
}

.store-card-name{
  min-width:0;
  color:#111827;
  font-size:14px;
  line-height:1.25;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.store-card-verified{
  flex:0 0 auto;
  width:18px;
  height:18px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#009e8e;
  color:#fff;
  font-size:8px;
  font-weight:900;
}

.store-card-slogan{
  margin-top:5px;
  color:#6d7780;
  font-size:10px;
  line-height:1.45;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Kateqoriyalar: başlıqsız, bir sətir */
.store-card-category-block{
  width:100%;
  margin-top:9px;
  overflow:hidden;
}

.store-card-categories{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:5px;
  width:100%;
  overflow:hidden;
  white-space:nowrap;
}

.store-card-category{
  flex:0 1 auto;
  min-width:0;
  max-width:126px;
  min-height:25px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:0 7px;
  border-radius:8px;
  background:#f1f8f7;
  border:1px solid #dfefec;
  color:#376f68;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
}

.store-card-category-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.store-card-category-count{
  flex:0 0 auto;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#009e8e;
  border:1px solid #dceae8;
  font-size:7px;
  font-weight:900;
}

.store-card-category-more{
  flex:0 0 auto;
  background:#f4f6f7;
  border-color:#e7eaed;
  color:#6b747d;
}

.store-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid #eef1f3;
}

.store-card-footer-item{
  display:flex;
  align-items:center;
  gap:5px;
  color:#7d8790;
  font-size:9px;
  font-weight:800;
}

.store-card-footer-item i{color:#009e8e;}
.store-card-enter{color:#009e8e;font-weight:900;}

.stores-empty{
  padding:52px 20px;
  text-align:center;
  border:1px solid #e7eaee;
  border-radius:18px;
  background:#fff;
}

.stores-empty-icon{
  width:56px;
  height:56px;
  margin:0 auto 12px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf8f6;
  color:#009e8e;
  font-size:22px;
}

.stores-empty-title{font-size:15px;font-weight:900;color:#344049;}
.stores-empty-subtitle{margin-top:6px;color:#8a939b;font-size:12px;font-weight:600;}

@media(max-width:1200px){
  .stores-section{
    padding-left:18px;
    padding-right:18px;
  }
}

@media(max-width:1050px){
  .stores-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
}

@media(max-width:640px){
  .stores-search{
    margin-bottom:10px;
  }

  .stores-search-box{
    min-height:46px;
    grid-template-columns:35px minmax(0,1fr) 32px;
    padding:4px 5px;
    border-radius:13px;
  }

  .stores-search-icon{
    width:32px;
    height:32px;
    border-radius:9px;
    font-size:12px;
  }

  .stores-search-input{
    height:36px;
    font-size:11px;
  }

  .stores-search-clear{
    width:30px;
    height:30px;
    border-radius:8px;
    font-size:10px;
  }

  .stores-search-meta{
    margin-top:5px;
    font-size:8px;
  }

  .stores-search-empty{
    padding:34px 14px;
    border-radius:14px;
  }

  .stores-search-empty-icon{
    width:44px;
    height:44px;
    font-size:16px;
  }
}

@media(max-width:640px){
  .stores-section{
    padding-left:8px;
    padding-right:8px;
    padding-bottom:24px;
  }

  .stores-head{margin-bottom:10px;}
  .stores-head h5{font-size:17px;}
  .stores-count{min-width:34px;height:27px;padding:0 8px;font-size:10px;}

  .stores-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .stores-grid > .store-card{
    border-radius:14px;
  }

  .store-card-cover{
    height:105px;
  }

  .store-card-count{
    top:6px;
    left:6px;
    min-height:21px;
    padding:0 6px;
    gap:4px;
    border-radius:7px;
    font-size:7px;
  }

  .store-card-open-badge{
    top:6px;
    right:6px;
    min-height:21px;
    padding:0 6px;
    gap:4px;
    font-size:7px;
  }

  .store-card-open-badge .dot{width:5px;height:5px;}

  .store-card-cover-address{
    left:6px;
    bottom:6px;
    max-width:calc(100% - 54px);
    min-height:20px;
    padding:3px 5px;
    gap:4px;
    border-radius:6px;
    font-size:6.7px;
  }

  .store-card-cover-address i{font-size:6.7px;}

  .store-card-logo{
    right:7px;
    bottom:-19px;
    width:44px;
    height:44px;
    padding:2px;
    border-radius:13px;
  }

  .store-card-logo img{border-radius:10px;}

  .store-card-body{
    padding:25px 8px 8px;
  }

  .store-card-name-row{
    gap:3px;
    padding-right:33px;
  }

  .store-card-name{font-size:10.5px;}
  .store-card-verified{width:14px;height:14px;font-size:6px;}

  .store-card-slogan{
    margin-top:3px;
    font-size:7.3px;
    line-height:1.35;
  }

  .store-card-category-block{margin-top:6px;}
  .store-card-categories{gap:3px;}

  .store-card-category{
    min-height:20px;
    max-width:72px;
    gap:2px;
    padding:0 4px;
    border-radius:6px;
    font-size:6.6px;
  }

  .store-card-category-count{
    min-width:13px;
    height:13px;
    padding:0 3px;
    font-size:5.8px;
  }

  .store-card-category:nth-child(n+3){display:none;}

  .store-card-footer{
    margin-top:6px;
    padding-top:6px;
  }

  .store-card-footer-item{
    gap:3px;
    font-size:6.8px;
  }

  .store-card-enter{display:none;}
}
