@import url("https://fonts.googleapis.com/css2?family=Uncial+Antiqua&family=Montserrat:wght@300;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&display=swap");

:root {
  --bg-1: #6d0a0a;
  --bg-2: #000000;
  --ink: #1d1d1f;
  --muted: #5a5a66;
  --accent: #c03a5b;
  --accent-2: #7a2b3c;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  --logo-red: #8e1f1f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 60vh;
  background:
    radial-gradient(circle at 18% 26%, rgba(192, 58, 91, 0.18), transparent 55%),
    radial-gradient(circle at 82% 12%, rgba(72, 12, 24, 0.35), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 20px 20px;
  background: #0c0f12;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(10, 10, 20, 0.22);
}

header::before {
  content: none;
}

header h1 {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: clamp(22px, 3.6vw, 32px);
  letter-spacing: 0.6px;
  color: #f3f3f3;
  text-shadow: none;
}

.site-logo,
.site-logo h1,
.site-logo:visited,
.site-logo:hover,
.site-logo:active,
.site-logo:focus,
.site-logo:focus-visible {
  display: inline-flex;
  color: #ffffff !important;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.site-logo h1 {
  display: block;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand account navigation";
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  grid-area: brand;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.header-account-actions {
  grid-area: account;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-right {
  grid-area: navigation;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mobile-header-greeting,
.mobile-account-menu-toggle,
.mobile-account-menu,
.mobile-account-menu-backdrop {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: 0;
  padding: 0 22px 64px 8px;
}

.type-filters {
   background: #000000;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  align-self: start;
}

.type-parent {
  width: 100%;
  border: none;
  background: #000000;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-align: left;
  font-size: 15px;
  margin: 6px 0 4px;
  cursor: pointer;
}

.type-parent.active {
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.type-options {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 6px 0 16px;
}

.type-options.open {
  display: grid;
}

.type-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #111111;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  min-width: 78px;
}

.type-btn.active {
  border-color: rgba(184, 3, 3, 0.6);
  box-shadow: 0 6px 14px rgba(184, 3, 3, 0.2);
}

.type-btn.clear {
  margin-top: 12px;
  background: linear-gradient(120deg, #b80303, #000000);
  color: #ffffff;
  border-color: rgba(184, 3, 3, 0.6);
}

.type-parent + .type-options {
  padding-left: 4px;
}

.type-parent[data-kind="elbise"] {
  margin-top: 10px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
  padding: 16px 0 0;
}

@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

.product {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: left;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(20, 20, 35, 0.22);
  border-color: rgba(255, 122, 162, 0.5);
}

.product img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 14px;
  display: block;
}

.product h2 {
  font-size: 18px;
  margin: 16px 0 6px;
  font-weight: 700;
}

.product p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 24, 24, 0.433), rgba(78, 1, 1, 0.548));
}

@media (max-width: 600px) {
  header {
    padding: 20px 16px;
  }

  .auth-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .auth-hello {
    font-size: 12px;
  }

  .catalog-body {
    grid-template-columns: 1fr;
  }

  .type-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 12px;
  }

  .type-parent {
    margin: 0;
    white-space: nowrap;
  }

  .type-options {
    grid-template-columns: 1fr;
    min-width: 120px;
    margin: 0;
  }

  .type-options.open {
    display: grid;
  }

  .type-btn,
  .type-btn.clear {
    min-width: auto;
    white-space: nowrap;
  }

  .filters {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product img {
    height: 220px;
  }
}

/* Product detail pages */
.product-page {
  max-width: 1100px;
  margin: 32px auto 64px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.product-gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.product-gallery__viewport:focus-visible,
.product-gallery__dot:focus-visible,
.product-gallery__thumbnail:focus-visible,
.product-gallery__arrow:focus-visible {
  outline: 2px solid #3f3f46;
  outline-offset: 2px;
}

.product-gallery__slide {
  width: 100%;
  margin: 0;
}

.product-gallery__slide[hidden] {
  display: none;
}

.product-gallery__slide img,
.product-gallery__placeholder {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

.product-gallery__placeholder {
  display: grid;
  place-items: center;
  color: #52525b;
  font-weight: 700;
}

.product-gallery__dots,
.product-gallery__thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.product-gallery__dot,
.product-gallery__thumbnail {
  border: 1px solid #a1a1aa;
  background: #ffffff;
  cursor: pointer;
}

.product-gallery__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.product-gallery__dot.is-active,
.product-gallery__thumbnail.is-active {
  border-color: #27272a;
  background: #ffffff;
  box-shadow: 0 0 0 1px #27272a;
}

.product-gallery__thumbnail {
  width: 66px;
  height: 54px;
  padding: 2px;
  border-radius: 8px;
  overflow: hidden;
}

.product-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbnail span {
  display: block;
  font-size: 9px;
  line-height: 1.15;
  color: #52525b;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(39, 39, 42, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #27272a;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.product-gallery__arrow--previous {
  left: 12px;
}

.product-gallery__arrow--next {
  right: 12px;
}

.product-gallery__arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.product-info {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.product-info h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0 0 8px;
  font-size: clamp(22px, 3.4vw, 32px);
}

.price {
  display: inline-block;
  margin: 8px 0 18px;
  font-weight: 700;
  color: #111016;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 999px;
}

.price del,
.product-card__price del {
  color: #71717a;
  font-weight: 500;
}

.price strong,
.product-card__price strong {
  color: #111016;
  font-weight: 800;
}

.product-card__price {
  margin: 8px 0 0;
  color: #111016;
  font-weight: 700;
}

.desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.sizes span {
  font-weight: 600;
  margin-right: 6px;
}

.sizes button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.sizes button.active {
  border-color: rgba(184, 3, 3, 0.6);
  box-shadow: 0 6px 14px rgba(184, 3, 3, 0.2);
}

.sizes button:disabled,
.sizes button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.add-cart {
  border: none;
  background: linear-gradient(120deg, #b80303, #000000);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(124, 107, 255, 0.22);
}

.add-cart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.back {
  display: inline-block;
  margin-top: 18px;
  color: #221a3b;
  text-decoration: none;
  font-weight: 600;
}

.back:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .product-gallery__slide img,
  .product-gallery__placeholder {
    height: 240px;
  }

  .product-info {
    padding: 18px;
  }
}
/* Kategori butonlari: gorunum buradan degisir */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  padding: 30px 22px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #f2f2f2;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active {
  background: linear-gradient(120deg, #b80303, #000000);
  border-color: rgba(255, 0, 0, 0.45);
}

/* Auth pages */
.auth-links {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.auth-links.left {
  justify-content: flex-start;
}

.auth-links.right {
  justify-content: flex-end;
}

.auth-hello {
  color: #f5f5f5;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.auth-btn {
  color: #0b0b0b;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #f5f5f5;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.auth-btn:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.auth-btn.primary {
  background: #b80303;
  color: #ffffff;
  border-color: #b80303;
  box-shadow: 0 10px 20px rgba(10, 10, 20, 0.25);
}

.cart-btn {
  position: relative;
  gap: 8px;
}

.cart-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #b80303;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

@media (max-width: 720px) {
  header {
    padding: 12px;
  }

  header h1 {
    font-size: clamp(19px, 6vw, 22px);
    letter-spacing: 0.2px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand navigation";
    gap: 10px;
  }

  .header-account-actions,
  .header-home,
  .header-orders {
    display: none;
  }

  .mobile-header-greeting {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.1px;
  }

  .header-right {
    display: flex;
    width: auto;
    gap: 8px;
  }

  .cart-btn,
  .mobile-account-menu-toggle {
    width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .cart-btn {
    gap: 0;
  }

  .cart-label {
    display: none;
  }

  .cart-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-account-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
  }

  .mobile-account-menu-toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .mobile-account-menu-toggle:focus-visible,
  .mobile-account-menu__close:focus-visible,
  .mobile-account-menu a:focus-visible,
  .mobile-account-menu button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  .mobile-account-menu-backdrop {
    position: fixed;
    z-index: 8;
    inset: 0;
    box-sizing: border-box;
    max-inline-size: 100%;
    max-block-size: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
  }

  .mobile-account-menu-backdrop[hidden],
  .mobile-account-menu[hidden] {
    display: none;
  }

  .mobile-account-menu {
    --mobile-account-menu-block-start: max(8px, env(safe-area-inset-top, 0px));
    --mobile-account-menu-block-end: max(8px, env(safe-area-inset-bottom, 0px));
    position: fixed;
    z-index: 9;
    inset-block-start: var(--mobile-account-menu-block-start);
    inset-inline-end: max(8px, env(safe-area-inset-right, 0px));
    display: grid;
    inline-size: 300px;
    min-inline-size: 0;
    min-block-size: 0;
    max-inline-size: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 16px);
    max-block-size: calc(100dvh - var(--mobile-account-menu-block-start) - var(--mobile-account-menu-block-end));
    gap: 14px;
    padding: 16px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: #17181b;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
  }

  .mobile-account-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-account-menu__header p,
  .mobile-account-menu__name {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-account-menu__name {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 500;
  }

  .mobile-account-menu__close {
    width: 40px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 9px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-account-menu__links {
    display: grid;
    gap: 8px;
  }

  .mobile-account-menu__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
  }

  .mobile-account-menu__links a,
  .mobile-account-menu__logout button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font: 600 14px "Montserrat", "Segoe UI", Arial, sans-serif;
    text-align: left;
    text-decoration: none;
  }

  .mobile-account-menu__logout {
    margin: 0;
  }

  .mobile-account-menu__logout button {
    width: 100%;
    border-color: rgba(211, 47, 47, 0.55);
    background: rgba(184, 3, 3, 0.16);
    cursor: pointer;
  }

  body.mobile-account-menu-open {
    overflow-y: hidden;
  }

  .filters {
    justify-content: center;
  }
}

.auth-page {
  max-width: 520px;
  margin: 36px auto 64px;
  padding: 0 16px;
  text-align: left;
}

.auth-card {
  padding: 26px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.auth-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}

.auth-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-input,
.auth-page input,
.account-page input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.auth-page textarea,
.account-page textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  resize: none;
  min-height: 120px;
  font-family: inherit;
  font-size: 14px;
}

.auth-cta {
  width: 100%;
  margin-top: 6px;
}

.auth-note {
  margin: 12px 0 0;
}

.auth-note a {
  color: #221a3b;
  font-weight: 600;
  text-decoration: none;
}

.auth-note a:hover {
  text-decoration: underline;
}

.account-page {
  width: min(100% - 32px, 760px);
  margin: 36px auto 64px;
  display: grid;
  gap: 20px;
}

.account-card {
  text-align: left;
}

.account-identity {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-help {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-field .account-help {
  margin: 6px 0 0;
}

@media (max-width: 360px) {
  .header-account-actions .auth-btn {
    padding-inline: 7px;
    font-size: 11px;
  }

  .header-orders {
    padding-inline: 10px;
  }

  .account-page {
    width: min(100% - 24px, 760px);
  }
}

/* Public contact and legal documents */
.legal-page {
  max-width: 840px;
  margin-top: 48px;
}

.legal-card {
  padding: clamp(24px, 5vw, 42px);
}

.legal-card h1 {
  margin-top: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.legal-card > p:first-of-type {
  padding-top: 14px;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
}

.legal-card p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-document-content {
  color: var(--ink);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-document-content p {
  margin: 1em 0;
}

.storefront-contact-card > p {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}

.storefront-contact-card > p:first-of-type {
  padding-top: 14px;
}

.storefront-contact-card > p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.storefront-contact-card strong {
  color: var(--muted);
}

@media (max-width: 520px) {
  .legal-page {
    margin-top: 28px;
  }

  .storefront-contact-card > p {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.errorlist {
  list-style: none;
  padding: 8px 12px;
  margin: 6px 0 0;
  background: rgba(176, 18, 18, 0.12);
  color: #7d0c0c;
  border-radius: 10px;
  font-size: 14px;
}

/* Cart */
.cart-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.cart-price {
  font-weight: 700;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 12px 0;
}

.grand-total {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.shipping-note {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.order-summary {
  margin-bottom: 16px;
}

.site-footer {
  margin-top: 60px;
  padding: 44px 20px 32px;
  background:
    radial-gradient(circle at top left, rgba(184, 3, 3, 0.25), transparent 58%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.5), transparent 50%),
    rgba(6, 6, 8, 0.92);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 38px;
}

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

.footer-title {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.4px;
  font-family: "Quicksand", "Montserrat", "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  text-shadow:
    -1px 0 0 rgba(0, 0, 0, 0.8),
    1px 0 0 rgba(0, 0, 0, 0.8),
    0 -1px 0 rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 11px;
}

.footer-col > p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  font-size: 16px;
  font-family: "Quicksand", "Montserrat", "Segoe UI", Arial, sans-serif;
  text-shadow:
    -1px 0 0 rgba(0, 0, 0, 0.8),
    1px 0 0 rgba(0, 0, 0, 0.8),
    0 -1px 0 rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(0, 0, 0, 0.8);
}

.footer-info-row,
.footer-contact-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.footer-info-row {
  margin-top: 19px;
}

.footer-info-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Quicksand", "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.footer-info-row strong {
  color: #ffffff;
  font-weight: 700;
}

.footer-info-icon,
.footer-contact-icon {
  width: 29px;
  height: 29px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-info-icon {
  margin-top: 2px;
  color: #ffffff;
}

.footer-contact-link,
.footer-contact-link:visited {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Quicksand", "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contact-link:hover {
  color: #ffffff;
}

.footer-contact-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 3px;
}

.footer-contact-icon {
  margin-top: -2px;
  color: #ffffff;
}

.footer-contact-icon--whatsapp {
  color: #25d366;
}

.footer-contact-icon--instagram {
  color: #f36d82;
}

.footer-bottom {
  display: grid;
  gap: 20px;
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
  font-family: "Quicksand", "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.legal-footer a,
.legal-footer a:visited {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-underline-offset: 3px;
}

.legal-footer a:not(:last-child)::after {
  content: "|";
  margin: 0 13px;
  color: rgba(255, 255, 255, 0.45);
}

.legal-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.legal-footer a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Quicksand", "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.footer-payment-band {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.footer-payment-band img {
  display: block;
  width: min(100%, 456px);
  height: auto;
  opacity: 0.92;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 34px 18px 26px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    gap: 30px;
  }

  .footer-title {
    font-size: 19px;
  }

  .footer-col > p,
  .footer-info-row p,
  .footer-contact-link {
    font-size: 15px;
  }

  .legal-footer a:not(:last-child)::after {
    margin: 0 9px;
  }

  .footer-payment-band {
    justify-content: center;
  }
}
.cart-items {
  margin: 0 0 16px 12px;
  color: var(--muted);
  font-size: 14px;
}

.order-summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-shipping-details,
.order-status-history {
  margin: -4px 0 16px 12px;
  color: var(--muted);
  font-size: 14px;
}

.order-shipping-details a {
  display: inline-block;
  margin-top: 6px;
  color: #8b0000;
  font-weight: 700;
}

.order-status-history ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* Catalog search and infinite scroll */
.catalog-search-wrap {
  max-width: 1200px;
  margin: 26px auto 0;
  padding: 0 22px;
}

.catalog-search {
  display: flex;
  width: min(100%, 510px);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  background: rgba(12, 15, 18, 0.9);
  box-shadow: none;
}

.catalog-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f4f5;
  padding: 12px 14px;
  font: 500 14px "Montserrat", "Segoe UI", Arial, sans-serif;
  line-height: 20px;
  appearance: none;
}

.catalog-search input::placeholder {
  color: #a1a1aa;
}

.catalog-search button {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: #b80303;
  color: #ffffff;
  padding: 0 19px;
  font: 700 14px "Montserrat", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.catalog-search button:hover,
.catalog-search button:focus-visible {
  background: #8e1f1f;
  outline: none;
}

.empty-products {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: #000000;
  box-shadow: var(--shadow);
  color: #f4f4f5;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.products-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px 8px;
  color: #f4f4f5;
  font: 600 14px "Montserrat", "Segoe UI", Arial, sans-serif;
}

.products-loader[hidden] {
  display: none;
}

.products-loader__spinner {
  width: 19px;
  height: 19px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #e11d48;
  border-radius: 50%;
  animation: products-spin 0.75s linear infinite;
}

.product--enter {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes products-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .catalog-search-wrap {
    margin-top: 18px;
    padding: 0 16px;
  }

  .catalog-search {
    width: 100%;
  }
}

/* Checkout legal documents */
.legal-consents {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(184, 3, 3, 0.22);
  border-radius: 14px;
  background: rgba(12, 15, 18, 0.06);
}

.legal-consents__intro {
  margin: 0;
  color: #3f3f46;
  font-size: 14px;
  font-weight: 600;
}

/* The production review keeps consent compact while exact rendered terms open in a modal. */
.legal-review-card .legal-consents {
  gap: 0;
  margin-top: 8px;
  padding: 0;
  overflow: hidden;
  border-color: #ead4d0;
  background: #fffaf7;
  box-shadow: 0 8px 20px rgba(75, 20, 20, 0.05);
}

.legal-review-card .legal-consents__header {
  padding: 18px 18px 14px;
}

.legal-review-card .legal-consents__header h3 {
  margin: 0;
  color: #6f1722;
  font-size: 17px;
  line-height: 1.35;
}

.legal-review-card .legal-consents__header p {
  margin: 6px 0 0;
  color: #4b4141;
  font-size: 13px;
  line-height: 1.5;
}

.legal-review-card .legal-consent-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #eadedb;
}

.legal-review-card .legal-consent-field {
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #eadedb;
  border-radius: 10px;
  background: #ffffff;
}

.legal-review-card .legal-consent-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.legal-review-card .legal-checkbox {
  min-width: 0;
  gap: 12px;
}

.legal-review-card .legal-checkbox label {
  margin: 0;
  color: #272025;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.legal-review-card .legal-checkbox input[type="checkbox"] {
  margin-top: 2px;
}

.legal-document-read-trigger {
  min-height: 36px;
  align-self: center;
  border: 1px solid #b83a43;
  border-radius: 999px;
  background: #fff8f7;
  color: #94101a;
  padding: 7px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.legal-document-read-trigger:hover {
  border-color: #8e111b;
  background: #f9e6e3;
  color: #74101a;
  transform: translateY(-1px);
}

.legal-document-read-trigger:focus-visible {
  outline: 2px solid #b80303;
  outline-offset: 3px;
}

body.legal-review-modal-open {
  overflow: hidden;
}

.legal-review-modal {
  width: min(680px, calc(100% - 32px));
  max-width: 680px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3cfcb;
  border-radius: 16px;
  background: #fffdf9;
  color: #292124;
  box-shadow: 0 28px 80px rgba(44, 14, 16, 0.35);
}

.legal-review-modal[open] {
  display: flex;
  flex-direction: column;
}

.legal-review-modal::backdrop {
  background: rgba(24, 12, 14, 0.56);
  backdrop-filter: blur(3px);
}

.legal-review-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #eadedb;
  background: #fff8f5;
}

.legal-review-modal__header h3 {
  margin: 0;
  color: #6f1722;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: clamp(17px, 3vw, 21px);
  line-height: 1.3;
}

.legal-review-modal__close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #d8b5af;
  border-radius: 50%;
  background: #ffffff;
  color: #8e111b;
  font: 400 27px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.legal-review-modal__close:hover,
.legal-review-modal__close:focus-visible {
  border-color: #a81924;
  background: #f9e6e3;
  color: #6f1722;
}

.legal-review-modal__close:focus-visible {
  outline: 2px solid #b80303;
  outline-offset: 3px;
}

.legal-review-modal__content {
  min-height: 0;
  max-height: min(62dvh, 600px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px 24px;
  color: #2d2528;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #a81924 #f3e8e5;
}

.legal-review-modal__content::-webkit-scrollbar {
  width: 10px;
}

.legal-review-modal__content::-webkit-scrollbar-track {
  background: #f3e8e5;
}

.legal-review-modal__content::-webkit-scrollbar-thumb {
  border: 2px solid #f3e8e5;
  border-radius: 999px;
  background: #a81924;
}

.legal-document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-document-trigger {
  appearance: none;
  border: 1px solid #7a2b3c;
  border-radius: 8px;
  background: #18181b;
  color: #f4f4f5;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.legal-document-trigger:hover,
.legal-document-trigger:focus-visible {
  background: #2b1117;
  border-color: #c03a5b;
  outline: none;
  transform: translateY(-1px);
}

.legal-consent-field {
  display: grid;
  gap: 5px;
}

.legal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-page .legal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #b80303;
  cursor: pointer;
}

.auth-field .legal-checkbox label {
  display: inline;
  margin: 0;
  color: #27272a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.legal-modal {
  width: calc(100% - 32px);
  max-width: 680px;
  box-sizing: border-box;
  max-height: min(82vh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  background: #18181b;
  color: #f4f4f5;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.legal-modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.legal-modal__header,
.legal-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #1f1f23;
}

.legal-modal__header {
  border-bottom: 1px solid #27272a;
}

.legal-modal__header h3 {
  margin: 0;
  color: #fafafa;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: clamp(17px, 3vw, 21px);
  line-height: 1.3;
}

.legal-modal__close {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  font: 300 28px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.legal-modal__close:hover,
.legal-modal__close:focus-visible {
  color: #c03a5b;
  background: transparent;
  outline: none;
}

.legal-modal__content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
  color: #e4e4e7;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
  scrollbar-width: thin;
  scrollbar-color: #9f1239 #27272a;
}

.legal-modal__content::-webkit-scrollbar {
  width: 10px;
}

.legal-modal__content::-webkit-scrollbar-track {
  background: #27272a;
}

.legal-modal__content::-webkit-scrollbar-thumb {
  border: 2px solid #27272a;
  border-radius: 999px;
  background: #9f1239;
}

.legal-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid #27272a;
}

.legal-modal__action {
  border: 1px solid #b80303;
  border-radius: 9px;
  background: linear-gradient(120deg, #b80303, #7a2b3c);
  color: #ffffff;
  padding: 10px 15px;
  font: 700 14px/1.2 "Montserrat", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.legal-modal__action:hover,
.legal-modal__action:focus-visible {
  filter: brightness(1.12);
  outline: 2px solid #f4f4f5;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .legal-modal__header,
  .legal-modal__footer,
  .legal-modal__content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-document-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-review-card .legal-consents__header,
  .legal-review-card .legal-consent-field,
  .legal-review-modal__header,
  .legal-review-modal__content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .legal-review-card .legal-consent-field__row {
    gap: 10px;
  }

  .legal-review-card .legal-consent-list {
    padding: 10px;
  }

  .legal-review-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .legal-review-modal__content {
    max-height: 66dvh;
  }
}
/* Alt menü kapları Varsayılan Gizli ve Dikey Hizalı */
.sub-options-container {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 6px 0;
  padding-left: 10px;
  box-sizing: border-box;
}

.sub-options-container.open {
  display: flex;
}

@media (min-width: 601px) {
/* Filtre menüsü kapsayıcısı */
  .type-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

/* Temizle butonunu en alta it ve tam genişlik yap */
  .type-filters .clear {
    margin-top: auto;
    width: 100%;
  }
}

.mobile-filter-drawer-controls,
.mobile-filter-panel-header,
.filter-drawer-backdrop {
  display: none;
}

@media (max-width: 767px) {
  .theme-filter-scroller {
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 16px;
    padding: 20px 16px 0;
    scrollbar-width: none;
  }

  .theme-filter-scroller::-webkit-scrollbar {
    display: none;
  }

  .theme-filter-scroller::after {
    content: "";
    flex: 0 0 1px;
  }

  .theme-filter-scroller .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .catalog-body {
    grid-template-columns: clamp(80px, 22vw, 104px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(8px, 2vw, 12px);
    padding: 0 8px 48px;
  }

  .type-filters {
    position: sticky;
    top: var(--catalog-sticky-top, 160px);
    display: flex;
    flex-direction: column;
    align-self: start;
    align-items: stretch;
    min-width: 0;
    max-height: calc(100dvh - var(--catalog-sticky-top, 160px) - 8px);
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    border-radius: 12px;
    scrollbar-width: thin;
  }

  .type-parent,
  .type-btn {
    min-width: 0;
    padding: 8px 6px;
    font-size: clamp(10px, 2.7vw, 12px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .type-parent {
    margin: 0;
    text-align: center;
  }

  .type-options,
  .type-options.open {
    min-width: 0;
    margin: 0;
    gap: 6px;
  }

  .type-filters .clear {
    width: 100%;
    margin-top: 0;
  }

  .sub-options-container {
    min-width: 0;
    gap: 6px;
    margin: 0;
    padding-left: 4px;
  }

  .products {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding-top: 0;
  }

  .product {
    min-width: 0;
    padding: 10px;
  }

  .product img {
    height: clamp(170px, 55vw, 220px);
  }
}

@media (max-width: 339px) {
  body.filter-drawer-open {
    overflow-y: hidden;
  }

  .mobile-filter-drawer-controls {
    display: flex;
    justify-content: flex-end;
    padding: 0 8px;
  }

  .mobile-filter-toggle {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-filter-toggle span {
    display: inline-flex;
    min-width: 18px;
    min-height: 18px;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    border-radius: 999px;
    background: #b80303;
    font-size: 11px;
  }

  .catalog-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .type-filters {
    position: fixed;
    z-index: 4;
    top: var(--catalog-sticky-top, 160px);
    bottom: 8px;
    left: 8px;
    width: 264px;
    min-width: 0;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    max-height: none;
    transform: translateX(calc(-100% - 16px));
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  }

  .type-filters.is-drawer-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-filter-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .filter-drawer-backdrop {
    display: block;
    position: fixed;
    z-index: 3;
    top: var(--catalog-sticky-top, 160px);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.48);
    border: 0;
  }

  .filter-drawer-backdrop[hidden] {
    display: none;
  }

  .products {
    padding-top: 0;
  }

  .product {
    padding: 16px;
  }

  .product img {
    height: 220px;
  }
}

.catalog-body {
  align-items: start;
}

.products {
  align-self: start;
  align-content: start;
}

.product {
  align-self: start;
  height: auto;
}

.category-panel-title,
.filter-section-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-panel-title {
  margin-bottom: 10px;
}

#type-filter-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.audience-tree > .audience-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  background: #18181b;
  color: #f4f4f5;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.audience-tree > .audience-btn::after {
  content: "+";
  color: #a1a1aa;
  font-size: 16px;
  line-height: 1;
}

.audience-tree > .audience-btn:hover {
  border-color: rgba(184, 3, 3, 0.82);
  background: #27272a;
}

.audience-tree > .audience-btn.active {
  border-color: #d32f2f;
  background: rgba(159, 18, 57, 0.42);
  box-shadow: inset 3px 0 0 #d32f2f;
}

.audience-tree > .audience-btn[aria-expanded="true"]::after {
  content: "−";
  color: #ffffff;
}

.audience-tree-section {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.audience-tree {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

.audience-type-options {
  display: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 8px;
  padding: 4px 0 4px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.audience-tree.open .audience-type-options {
  display: grid;
}

.general-category-section {
  margin-top: 4px;
}

.type-filters .type-parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  background: #27272a;
  color: #d4d4d8;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.type-filters .type-parent:hover {
  border-color: rgba(184, 3, 3, 0.82);
  color: #ffffff;
}

.type-filters .type-parent.active {
  border-color: #d32f2f;
  background: linear-gradient(120deg, #9f1239, #b80303);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(184, 3, 3, 0.28);
}

.filter-section {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.type-filters .type-btn {
  border-color: #3f3f46;
  background: #18181b;
  color: #f4f4f5;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.type-filters .type-btn:hover {
  border-color: rgba(184, 3, 3, 0.82);
  background: #27272a;
}

.filters .filter-btn,
.type-filters button,
.mobile-filter-toggle,
.filter-drawer-backdrop {
  touch-action: manipulation;
}

.type-filters .type-btn.active {
  border-color: #d32f2f;
  background: rgba(159, 18, 57, 0.42);
  box-shadow: inset 3px 0 0 #d32f2f;
}

.type-filters .sub-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.type-filters .sub-toggle-btn::after {
  content: "+";
  color: #a1a1aa;
  font-size: 16px;
  line-height: 1;
}

.type-filters .sub-toggle-btn[aria-expanded="true"]::after {
  content: "−";
  color: #ffffff;
}

.sub-options-container {
  margin: 0;
  padding: 4px 0 4px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sub-options-container .type-btn {
  background: #222225;
  font-size: 13px;
}

.accessory-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.type-filters .filter-reset {
  margin-top: 4px;
  border-color: transparent;
  background: transparent;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.type-filters .filter-reset:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.type-filters .type-parent:focus-visible,
.type-filters .type-btn:focus-visible,
.type-filters .audience-btn:focus-visible,
.mobile-filter-toggle:focus-visible,
.mobile-filter-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .type-filters {
    align-items: stretch;
  }
}

@media (min-width: 340px) and (max-width: 767px) {
  .category-panel-title {
    margin-bottom: 0;
    font-size: 10px;
  }

  .filter-section {
    padding-top: 8px;
  }
}

@media (max-width: 339px) {
  .category-panel-title {
    display: none;
  }
}

.filter-reset-label-short {
  display: none;
}

@media (max-width: 767px) {
  .catalog,
  .catalog-body,
  .products,
  .product,
  .empty-products {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-body {
    grid-template-columns: clamp(105px, 28vw, 115px) minmax(0, 1fr);
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
  }

  .type-filters {
    width: 100%;
    box-sizing: border-box;
    gap: 6px;
    padding: 7px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .category-panel-title,
  .filter-section-title {
    overflow-wrap: anywhere;
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: 0.04em;
  }

  .type-filters .type-parent {
    min-height: 36px;
    padding: 7px 5px;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
  }

  .filter-section {
    gap: 6px;
    padding-top: 8px;
  }

  .type-filters .type-btn,
  .type-filters .audience-btn,
  .accessory-buttons .type-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 5px;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
  }

  .type-filters .sub-toggle-btn {
    gap: 4px;
  }

  .type-filters .sub-toggle-btn::after {
    font-size: 14px;
  }

  .sub-options-container {
    gap: 5px;
    padding: 4px 0 4px 6px;
  }

  .audience-type-options {
    gap: 5px;
    padding: 4px 0 4px 6px;
  }

  .sub-options-container .type-btn {
    font-size: 10px;
  }

  .type-filters .type-btn.active {
    background: linear-gradient(120deg, #9f1239, #b80303);
    box-shadow: none;
  }

  .type-filters .filter-reset {
    min-height: 34px;
    padding: 7px 5px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .products {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .product,
  .empty-products {
    width: 100%;
    box-sizing: border-box;
  }

  .empty-products {
    padding: 12px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 340px) and (max-width: 767px) {
  .filter-reset-label-full {
    display: none;
  }

  .filter-reset-label-short {
    display: inline;
  }
}

@media (max-width: 339px) {
  .catalog-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 340px) {
  .catalog-body {
    align-items: start;
  }

  .type-filters {
    position: sticky;
    top: var(--catalog-sticky-top, 160px);
    align-self: start;
    max-height: calc(100dvh - var(--catalog-sticky-top, 160px) - 8px);
    overflow-y: auto;
  }

  .products {
    align-self: start;
  }
}
