/* ===============================
   EXAMPLES PAGE – PREMIUM CLEAN
================================ */

.store-wrap{
  padding-block:70px;
}

/* ===============================
   HEADER / TEXT
================================ */

.store-disclaimer{
  margin:30px 0 50px;
  padding:20px 24px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  font-size:14px;
  line-height:1.6;
  opacity:.85;
}

/* ===============================
   FILTERS / TOOLBAR
================================ */

.store-toolbar{
  margin-bottom:35px;

  /* FIX: dropdown above cards */
  position:relative;
  z-index:2000;
}

.store-filters{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  align-items:flex-end;
}

/* label wrapper */
.store-select{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  opacity:1;
  position:relative;
}

.store-select > span{
  font-size:12px;
  opacity:.75;
}

/* Native select stays in DOM but visually hidden (custom dropdown replaces it) */
.nativeSelectHidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* ===== Premium Reset Chip ===== */
.chip{
  padding:11px 16px;
  border-radius:999px;

  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(120% 180% at 20% 20%, rgba(255,255,255,.10), transparent 60%),
    rgba(255,255,255,.05);

  color:rgba(255,255,255,.92);
  font-weight:700;
  font-size:13px;
  line-height:1;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 14px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.05) inset;

  transition:.2s ease;
  cursor:pointer;
}

.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
  background:
    radial-gradient(120% 180% at 20% 20%, rgba(255,255,255,.12), transparent 60%),
    rgba(255,255,255,.07);
}

/* ===============================
   CUSTOM SELECT – DARK GLASS
================================ */

.customSelect{
  position:relative;
  width:190px;
  user-select:none;

  /* FIX: dropdown above cards */
  z-index:2100;
}

.customSelectBtn{
  width:100%;
  min-height:44px;
  padding:12px 44px 12px 16px;
  border-radius:999px;

  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(120% 180% at 20% 20%, rgba(255,255,255,.10), transparent 60%),
    rgba(255,255,255,.05);

  color:rgba(255,255,255,.92);
  font-weight:700;
  font-size:13px;
  line-height:1;

  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  box-shadow:
    0 14px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.05) inset;

  cursor:pointer;
  transition:.2s ease;
  position:relative;
}

.customSelectBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
  background:
    radial-gradient(120% 180% at 20% 20%, rgba(255,255,255,.12), transparent 60%),
    rgba(255,255,255,.07);
}

.customSelectBtn:focus{
  outline:none;
  border-color: rgba(130,115,255,.55);
  box-shadow:
    0 18px 40px rgba(0,0,0,.45),
    0 0 0 1px rgba(130,115,255,.25) inset,
    0 0 22px rgba(130,115,255,.18);
}

/* arrow */
.customSelectBtn::after{
  content:"";
  position:absolute;
  inset-inline-end:16px;
  top:50%;
  width:9px;
  height:9px;
  border-right:2px solid rgba(255,255,255,.65);
  border-bottom:2px solid rgba(255,255,255,.65);
  transform: translateY(-50%) rotate(45deg);
  transition: transform .2s ease, opacity .2s ease;
  opacity:.9;
  pointer-events:none;
}

.customSelect.open .customSelectBtn::after{
  transform: translateY(-50%) rotate(225deg);
  opacity:1;
}

/* dropdown panel */
.customSelectMenu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  left:0;

  /* FIX: must be above everything */
  z-index:99999;

  border-radius:18px;
  overflow:hidden;

  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(to bottom, rgba(20,22,30,.92), rgba(12,14,20,.88));

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 26px 70px rgba(0,0,0,.65);
  display:none;
}

.customSelect.open .customSelectMenu{
  display:block;
  animation: csIn .14s ease-out;
}

@keyframes csIn{
  from{ opacity:0; transform: translateY(-6px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.customSelectOption{
  padding:12px 14px;
  font-size:13px;
  font-weight:650;
  color: rgba(255,255,255,.90);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.customSelectOption:hover{
  background: rgba(255,255,255,.08);
}

.customSelectOption.is-active{
  background: rgba(130,115,255,.18);
}

.customSelectCheck{
  opacity:0;
  transform: translateY(1px);
  transition: .15s ease;
  font-weight:800;
}

.customSelectOption.is-selected .customSelectCheck{
  opacity:.9;
}

/* ===============================
   GRID
================================ */

.store-grid{
  display:grid;
  gap:36px;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
}

/* ensure grid never overlays the dropdown */
.store-grid-wrap{
  position:relative;
  z-index:1;
}

/* ===============================
   CARD
================================ */

.p-card{
  border-radius:28px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  transition:.35s ease;
  display:flex;
  flex-direction:column;

  /* prevents weird layering issues */
  position:relative;
  z-index:1;
}

.p-card:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,.2);
  box-shadow:0 20px 50px rgba(0,0,0,.35);
}

/* ===============================
   IMAGE (for JS: p-coverLink + img + overlay)
================================ */

.p-coverLink{
  position:relative;
  display:block;
  aspect-ratio:16 / 10;
  overflow:hidden;
  border-radius:28px 28px 0 0;
  background:rgba(0,0,0,.35);
}

.p-coverImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  transition: transform .4s ease;
}

.p-card:hover .p-coverImg{
  transform: scale(1.06);
}

.p-coverShade{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 70% 10%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.06));
  pointer-events:none;
}

/* ===============================
   TOP TAGS INSIDE IMAGE (RIGHT TOP)
================================ */

.demoTopTags{
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  z-index:3;
}

.demoTopTag{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:10px 16px;
  border-radius:999px;

  font-size:13px;
  font-weight:700;
  letter-spacing:.3px;

  color:rgba(255,255,255,.95);
  background: linear-gradient(to bottom, rgba(255,255,255,.15), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.35);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 12px 30px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08) inset;

  transition:.2s ease;
}

.demoTopTag::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 60%);
  opacity:.30;
  pointer-events:none;
}

.demoTopTag:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.50);
}

.demoTopTag.is-hot{
  border-color:rgba(255,170,0,.55);
  box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 25px rgba(255,170,0,.25);
}

.demoTopTag.is-dark{
  border-color:rgba(130,115,255,.55);
  box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 25px rgba(130,115,255,.25);
}

/* ===============================
   CONTENT
================================ */

.p-body{
  padding:26px 26px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.p-title{
  margin:0;
  font-size:21px;
  font-weight:600;
}

.p-desc{
  margin:0;
  font-size:14px;
  line-height:1.6;
  opacity:.7;
}

/* ===============================
   TAGS (inside card body)
================================ */

.p-tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.p-tags .tag{
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;

  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);

  box-shadow:
    0 10px 22px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.06) inset;

  transition:.2s ease;
}

.p-tags .tag:hover{
  transform:translateY(-1px);
}

/* ===============================
   ACTIONS
================================ */

.p-bottom{
  padding:18px 26px 26px;
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.p-bottom .btn{
  border-radius:14px;
  padding:11px;
  font-size:14px;
  transition:.25s ease;
  text-align:center;
}

.p-bottom .btn:hover{
  transform:translateY(-2px);
}

/* ===============================
   META INFO
================================ */

.p-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  opacity:.55;
  font-size:12px;
}

.meta{
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
}

/* ===============================
   EMPTY
================================ */

.store-empty{
  margin-top:50px;
  display:flex;
  justify-content:center;
}

.store-empty-box{
  text-align:center;
  padding:45px;
  border-radius:24px;
  border:1px dashed rgba(255,255,255,.2);
  opacity:.7;
}

.store-empty-emoji{
  font-size:28px;
  margin-bottom:12px;
}

/* ===============================
   RESPONSIVE
================================ */

@media(max-width:600px){
  .store-grid{gap:24px;}
  .p-title{font-size:18px;}
  .p-body{padding:22px;}
  .p-bottom{padding:16px 22px 22px;}

  .demoTopTags{top:12px; right:12px;}
  .demoTopTag{padding:8px 14px; font-size:12px;}

  .customSelect{ width:170px; }
}