/* Etminan Tel — shop, category and product-search pages */
.et-shop { padding: 6px 0 40px; }

/* head */
.et-shop__head { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 26px; margin: 4px 0 16px; border-radius: var(--et-r-lg); background: linear-gradient(115deg, #fff 0%, #F6F2FF 55%, #FFF1F4 100%); border: 1px solid #fff; box-shadow: var(--et-shadow-sm); overflow: hidden; }
.et-shop__head::after { content: ""; position: absolute; left: -40px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 240, .16), transparent 70%); pointer-events: none; }
.et-shop__thumb { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--et-shadow-sm); overflow: hidden; }
.et-shop__thumb img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.et-shop__ht { flex: 1; min-width: 0; }
.et-shop__title { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.6; color: var(--et-ink); }
.et-shop__count { margin: 2px 0 0; font-size: 13px; color: var(--et-muted); }
.et-shop__mascot { position: relative; z-index: 1; width: 84px; height: 84px; object-fit: contain; margin: -10px 0 -18px; filter: drop-shadow(0 10px 18px rgba(74, 47, 184, .18)); }

/* sub-categories */
.et-shop__cats { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 6px; scrollbar-width: none; }
.et-shop__cats::-webkit-scrollbar { display: none; }
.et-shop__cat { flex-shrink: 0; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 16px; border-radius: 20px; background: #fff; border: 1px solid var(--et-line); color: var(--et-ink); font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .25s var(--et-ease), box-shadow .25s, border-color .25s; }
.et-shop__cat:hover { transform: translateY(-2px); border-color: rgba(123, 92, 240, .35); box-shadow: var(--et-shadow-sm); }
.et-shop__cat-img { width: 40px; height: 40px; border-radius: 14px; background: var(--et-soft); display: grid; place-items: center; color: var(--et-violet); overflow: hidden; }
.et-shop__cat-img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }

/* layout */
.et-shop__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.et-shop__main { min-width: 0; }

/* filters */
.et-filters { position: sticky; top: calc(var(--et-hdr-h, 150px) + 12px); }
.admin-bar .et-filters { top: calc(var(--et-hdr-h, 150px) + 44px); }
.et-filters__sheet { background: #fff; border: 1px solid var(--et-line); border-radius: var(--et-r-lg); box-shadow: var(--et-shadow-sm); max-height: calc(100vh - var(--et-hdr-h, 150px) - 30px); display: flex; flex-direction: column; overflow: hidden; }
.et-filters__top { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--et-line); }
.et-filters__top b { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; }
.et-filters__top b svg { color: var(--et-violet); }
.et-filters__clear { font-size: 12px; font-weight: 800; color: var(--et-red) !important; }
.et-filters__x, .et-filters__done, .et-filters__scrim { display: none; }
.et-filters__body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px 14px; scrollbar-width: thin; }

.et-fl { border-bottom: 1px solid var(--et-line); padding: 4px 4px 10px; }
.et-fl:last-child { border-bottom: 0; }
.et-fl > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 2px; cursor: pointer; font-size: 13.5px; font-weight: 900; color: var(--et-ink); user-select: none; }
.et-fl > summary::-webkit-details-marker { display: none; }
.et-fl > summary::after { content: ""; margin-inline-start: auto; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); opacity: .45; transition: transform .25s var(--et-ease); }
.et-fl[open] > summary::after { transform: rotate(135deg) translateY(-2px); }
.et-fl > summary small { font-weight: 500; color: var(--et-muted-2); font-size: 11px; }
.et-fl > summary em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--et-violet); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }

.et-fl--toggles { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.et-tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px; font-size: 13px; font-weight: 700; color: var(--et-ink-2) !important; text-decoration: none; }
.et-tg i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #E2E1EA; transition: background .25s; flex-shrink: 0; }
.et-tg i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .25s var(--et-ease); }
.et-tg.is-on i { background: var(--et-violet); }
.et-tg.is-on i::after { transform: translateX(-16px); }

.et-fl__q { width: 100%; height: 38px; margin: 0 0 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--et-line-2); background: var(--et-soft-2); font: inherit; font-size: 12.5px; }
.et-fl__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.et-fl__list.is-many { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.et-ck { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 12px; font-size: 13px; color: var(--et-ink-2) !important; text-decoration: none; transition: background .2s; }
.et-ck:hover { background: var(--et-soft-2); }
.et-ck__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-ck small { font-size: 11px; color: var(--et-muted-2); }
.et-ck__box { width: 20px; height: 20px; flex-shrink: 0; border-radius: 7px; border: 2px solid #CFCDDB; background: #fff; transition: background .2s, border-color .2s; }
.et-ck.is-on .et-ck__box { border-color: var(--et-violet); background: var(--et-violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.et-ck.is-on { color: var(--et-ink) !important; font-weight: 800; }
.et-ck__sw { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(30, 28, 42, .14); }
.et-ck.is-on .et-ck__sw { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--et-violet); }
.et-fl__list.is-color { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.et-fl__list.is-color .et-ck { padding: 6px 10px 6px 8px; border: 1px solid var(--et-line); border-radius: 999px; }
.et-fl__list.is-color .et-ck.is-on { border-color: var(--et-violet); background: var(--et-violet-soft); }
.et-fl__list.is-color .et-ck small { display: none; }
.et-fl__list li[hidden] { display: none; }

/* price */
.et-price__track { position: relative; height: 28px; margin: 4px 10px 6px; }
.et-price__track::before { content: ""; position: absolute; inset: 12px 0; height: 4px; border-radius: 4px; background: #E7E6EF; }
.et-price__fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--et-grad-violet); }
.et-price__r { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; direction: rtl; }
.et-price__r::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--et-violet); box-shadow: 0 4px 10px rgba(74, 47, 184, .3); cursor: grab; }
.et-price__r::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--et-violet); box-shadow: 0 4px 10px rgba(74, 47, 184, .3); cursor: grab; }
.et-price__r::-webkit-slider-runnable-track { background: none; }
.et-price__vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.et-price__vals label { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--et-line-2); background: var(--et-soft-2); }
.et-price__vals small { font-size: 11px; color: var(--et-muted-2); }
.et-price__in { width: 100%; min-width: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; text-align: left; direction: ltr; outline: 0; }
.et-price__go { width: 100%; height: 40px; margin-top: 10px; border: 0; border-radius: 12px; background: var(--et-violet-soft); color: var(--et-violet-d); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; transition: background .2s, color .2s; }
.et-price__go:hover { background: var(--et-violet); color: #fff; }

/* toolbar */
.et-shop__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 8px; border-radius: 20px; background: #fff; border: 1px solid var(--et-line); }
.et-shop__fbtn { display: none; }
.et-sort { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.et-sort::-webkit-scrollbar { display: none; }
.et-sort__l { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 0 8px; font-size: 13px; font-weight: 800; color: var(--et-ink); }
.et-sort__l svg { color: var(--et-violet); }
.et-sort__i { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--et-muted) !important; text-decoration: none; transition: background .2s, color .2s; }
.et-sort__i:hover { background: var(--et-soft); color: var(--et-ink) !important; }
.et-sort__i.is-on { background: var(--et-violet-soft); color: var(--et-violet-d) !important; font-weight: 900; }

.et-shop__active { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.et-chip-x { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--et-violet-soft); color: var(--et-violet-d) !important; font-size: 12px; font-weight: 800; text-decoration: none; transition: background .2s, color .2s; }
.et-chip-x:hover { background: var(--et-violet); color: #fff !important; }

/* grid */
.et-shop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1300px) { .et-shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* pager */
.et-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.et-pager__i { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 14px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--et-line); color: var(--et-ink) !important; font-size: 14px; font-weight: 800; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
a.et-pager__i:hover { border-color: var(--et-violet); color: var(--et-violet-d) !important; }
.et-pager__i.current { background: var(--et-grad-violet); border-color: transparent; color: #fff !important; box-shadow: 0 8px 18px rgba(106, 75, 224, .3); }
.et-pager__i.dots { background: none; border: 0; }
.et-pager__i.next svg { transform: none; }
.et-pager__i.prev svg { transform: scaleX(-1); }

/* empty */
.et-shop__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 20px; border-radius: var(--et-r-lg); background: #fff; border: 1px dashed var(--et-line-2); }
.et-shop__empty img { width: 110px; height: 110px; object-fit: contain; }
.et-shop__empty b { font-size: 17px; font-weight: 900; }
.et-shop__empty p { margin: 0 0 8px; color: var(--et-muted); font-size: 13px; }

/* category description (SEO text) */
.et-shop__desc { position: relative; margin-top: 32px; padding: 22px 24px 18px; border-radius: var(--et-r-lg); background: #fff; border: 1px solid var(--et-line); }
.et-shop__desc-in { max-height: 180px; overflow: hidden; font-size: 13.5px; line-height: 2.2; color: var(--et-ink-2); transition: max-height .5s var(--et-ease); -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.et-shop__desc.is-open .et-shop__desc-in { max-height: none; -webkit-mask: none; mask: none; }
.et-shop__desc-in h2, .et-shop__desc-in h3 { font-size: 16px; font-weight: 900; margin: 14px 0 6px; }
.et-shop__desc-in img { max-width: 100%; height: auto; border-radius: 16px; }
.et-shop__more { margin-top: 8px; border: 0; background: none; color: var(--et-violet-d); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; padding: 0; }
.et-shop__desc.is-open .et-shop__more { display: none; }

/* ---------------------------------------------------------------- tablet / phone */
@media (max-width: 1024px) {
  .et-shop__layout { grid-template-columns: minmax(0, 1fr); }
  .et-filters { position: fixed; inset: 0; z-index: 9990; top: 0 !important; pointer-events: none; }
  .et-filters__sheet { position: absolute; right: 0; left: 0; bottom: 0; max-height: 86vh; border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform .4s var(--et-ease); pointer-events: auto; box-shadow: 0 -20px 60px rgba(30, 28, 42, .2); }
  .et-filters__x { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--et-soft); color: var(--et-ink); cursor: pointer; }
  .et-filters__done { display: block; margin: 0 14px calc(14px + env(safe-area-inset-bottom)); height: 50px; border: 0; border-radius: 16px; background: var(--et-grad-red); color: #fff; font: inherit; font-size: 14px; font-weight: 900; box-shadow: 0 12px 26px rgba(229, 50, 80, .28); }
  .et-filters__scrim { display: block; position: fixed; inset: 0; z-index: 9989; background: rgba(20, 18, 34, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.et-filters-open .et-filters__sheet { transform: none; }
  body.et-filters-open .et-filters__scrim { opacity: 1; pointer-events: auto; }
  body.et-filters-open { overflow: hidden; }
  .et-shop__fbtn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--et-ink); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
  .et-shop__fbtn em { font-style: normal; min-width: 18px; height: 18px; border-radius: 999px; background: var(--et-red); font-size: 10.5px; display: inline-grid; place-items: center; }
  .et-sort__l { display: none; }
  .et-shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .et-shop__head { padding: 16px 16px; gap: 12px; border-radius: 24px; }
  .et-shop__title { font-size: 18px; }
  .et-shop__thumb { width: 52px; height: 52px; border-radius: 16px; }
  .et-shop__mascot { width: 62px; height: 62px; margin: -8px 0 -14px; }
  .et-shop__cat { height: 48px; padding: 0 6px 0 12px; font-size: 12px; border-radius: 16px; }
  .et-shop__cat-img { width: 34px; height: 34px; border-radius: 12px; }
  .et-shop__bar { position: sticky; top: calc(var(--et-hdr-h, 120px) + 6px); z-index: 20; border-radius: 16px; padding: 6px; box-shadow: var(--et-shadow-sm); }
  .et-sort__i { height: 34px; padding: 0 11px; font-size: 12px; }
  .et-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .et-shop__desc { padding: 18px 16px 14px; border-radius: 22px; }
}

/* ---- 1.3.3: sub-category rail — horizontal only, wheel/drag on desktop, snap on phones */
.et-shop__cats { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 4px; padding-top: 4px; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.et-shop__cat { scroll-snap-align: start; }
.et-shop__cats.is-fade-s { -webkit-mask: linear-gradient(to left, transparent 0, #000 36px); mask: linear-gradient(to left, transparent 0, #000 36px); }
.et-shop__cats.is-fade-e { -webkit-mask: linear-gradient(to right, transparent 0, #000 36px); mask: linear-gradient(to right, transparent 0, #000 36px); }
.et-shop__cats.is-fade-s.is-fade-e { -webkit-mask: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); mask: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }
.et-shop__cat.is-current { border-color: var(--et-violet); background: var(--et-violet-soft, #F1EDFF); color: var(--et-violet-d, #5B3FD6); }
@media (hover: hover) and (pointer: fine) {
  .et-shop__cats { cursor: grab; }
  .et-shop__cats.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .et-shop__cats.is-drag .et-shop__cat { pointer-events: none; }
}

/* ---- 1.3.11: category intro + FAQ */
.et-shop__intro { margin: 4px 0 0; font-size: 13px; line-height: 2; color: var(--et-muted); max-width: 720px; }
.et-shop__faq { margin-top: 18px; padding: 20px 24px; border-radius: var(--et-r-lg); background: #fff; border: 1px solid var(--et-line); }
.et-shop__faq h2 { margin: 0 0 10px; font-size: 16px; font-weight: 900; }
.et-shop__faq details { border-top: 1px solid var(--et-line); }
.et-shop__faq details:first-of-type { border-top: 0; }
.et-shop__faq summary { list-style: none; cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.et-shop__faq summary::-webkit-details-marker { display: none; }
.et-shop__faq summary::after { content: "+"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--et-violet-soft); color: var(--et-violet-d); font-weight: 900; transition: transform .25s; }
.et-shop__faq details[open] summary::after { content: "−"; }
.et-shop__faq p { margin: 0 0 14px; font-size: 13.5px; line-height: 2.1; color: var(--et-ink-2); }
@media (max-width: 760px) { .et-shop__faq { padding: 16px; border-radius: 22px; } }
