:root {
      --bg: #171511;
      --text: #f7efe4;
      --muted: #c7bba9;
      --gold: #c99a53;
      --gold2: #f2cb82;
      --btn-brass: #b8793c;
      --btn-brass-hover: #c98f4a;
      --btn-brass-active: #8e5f31;
      --btn-ink: #130e09;
      --cream: #efe2cf;
      --line: rgba(201, 154, 83, .22);
      --shadow: 0 22px 62px rgba(0, 0, 0, .30);
    }

    * { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 78px;
    }

    body {
      margin: 0;
      font-family: 'IRANYekan', 'IRYekan', Tahoma, Arial, sans-serif !important;
      color: var(--text);
      background:
        radial-gradient(circle at 16% 8%, rgba(201, 154, 83, .16), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(239, 226, 207, .13), transparent 30%),
        linear-gradient(180deg, #1b1813 0%, #141413 52%, #1d1912 100%);
      overflow-x: hidden;
      text-align: right;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, select, textarea { font-family: inherit !important; }

    .btn-gold,
    .btn-ghost {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 0 14px;
      border-radius: 10px;
      font-size: .86rem;
      font-weight: 750;
      white-space: nowrap;
      border: 1px solid transparent;
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
    }

    .btn-gold {
      color: var(--btn-ink);
      border-color: rgba(242, 203, 130, .26);
      background: var(--btn-brass);
      box-shadow: 0 12px 26px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
    }

    .btn-ghost {
      color: #f0d4aa;
      border-color: rgba(184, 121, 60, .45);
      background: rgba(184, 121, 60, .08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .026);
    }

    .btn-gold:hover,
    .btn-ghost:hover {
      transform: translateY(-1px);
    }

    .btn-gold:hover {
      color: var(--btn-ink);
      border-color: rgba(242, 203, 130, .42);
      background: var(--btn-brass-hover);
      box-shadow: 0 16px 34px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .24);
    }

    .btn-ghost:hover {
      color: #ffe2b2;
      border-color: rgba(201, 143, 74, .68);
      background: rgba(184, 121, 60, .16);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .20), inset 0 0 0 1px rgba(242, 203, 130, .06);
    }

    .btn-gold:active,
    .btn-ghost:active {
      transform: translateY(1px);
    }

    .btn-gold:active {
      background: var(--btn-brass-active);
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, .22);
    }

    .btn-ghost:active {
      background: rgba(142, 95, 49, .22);
      border-color: rgba(201, 143, 74, .75);
    }

    .btn-gold:focus-visible,
    .btn-ghost:focus-visible {
      outline: 2px solid rgba(242, 203, 130, .72);
      outline-offset: 3px;
    }

    .btn-gold:disabled,
    .btn-ghost:disabled,
    .btn-gold.disabled,
    .btn-ghost.disabled,
    .btn-gold[aria-disabled="true"],
    .btn-ghost[aria-disabled="true"] {
      opacity: .48;
      pointer-events: none;
      transform: none;
      box-shadow: none;
    }

    .site-header {
      position: fixed;
      inset: 0 0 auto;
      z-index: 1030;
      background: linear-gradient(180deg, rgba(18, 17, 14, .88), rgba(18, 17, 14, .62));
      border-bottom: 1px solid rgba(201, 154, 83, .16);
      backdrop-filter: blur(18px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    }

    .navbar { min-height: 66px; }
    .navbar-brand { gap: 12px; margin: 0; color: var(--text) !important; }

    .brand-mark {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      color: #111;
      font-weight: 950;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      box-shadow: 0 0 24px rgba(201, 154, 83, .20);
    }

    .brand-title { font-size: .98rem; font-weight: 950; line-height: 1.4; }
    .brand-sub { display: block; direction: ltr; text-align: right; color: var(--muted); font-size: .68rem; letter-spacing: .7px; }

    .navbar .nav-link {
      color: #d7cfbf !important;
      border-radius: 999px;
      padding: .6rem .78rem !important;
      font-size: .88rem;
      transition: .22s ease;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active { color: var(--gold2) !important; background: rgba(201, 154, 83, .12); }

    .navbar-toggler { border: 1px solid rgba(201, 154, 83, .34); box-shadow: none !important; }
    .navbar-toggler-icon { filter: invert(1) sepia(.75); }

    .page-hero {
      position: relative;
      min-height: 430px;
      display: flex;
      align-items: center;
      padding: 106px 0 54px;
      overflow: hidden;
      isolation: isolate;
      border-bottom: 1px solid rgba(201, 154, 83, .14);
    }

    .page-hero::before,
    .page-hero::after {
      background:
        radial-gradient(circle at 18% 24%, rgba(201, 154, 83, .16), transparent 28%),
        radial-gradient(circle at 82% 72%, rgba(239, 226, 207, .10), transparent 28%),
        linear-gradient(90deg, rgba(22, 20, 16, .56), rgba(22, 20, 16, .22), rgba(22, 20, 16, .58));
      backdrop-filter: blur(2px);
    }

    .breadcrumb-mini {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 18px;
      color: var(--muted);
      font-size: .84rem;
    }

    .breadcrumb-mini a { color: #d5c8b7; }
    .breadcrumb-mini span { color: rgba(255, 255, 255, .28); }

    .hero-grid {
      display: block;
      max-width: 860px;
    }

    .hero-copy h1 {
      margin: 0 0 12px;
      font-size: clamp(2rem, 3.8vw, 3.7rem);
      font-weight: 950;
      line-height: 1.22;
      letter-spacing: -.045em;
    }

    .hero-copy h1 span { display: block; color: var(--gold2); }

    .hero-copy p {
      max-width: 670px;
      margin: 0 0 22px;
      color: #d8cdbc;
      font-size: .98rem;
      line-height: 2;
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 24px;
      max-width: 620px;
    }

    .hero-stat {
      padding: 14px;
      border: 1px solid rgba(201, 154, 83, .18);
      border-radius: 16px;
      background: rgba(5, 6, 7, .42);
      backdrop-filter: blur(12px);
      text-align: center;
    }

    .hero-stat strong {
      display: block;
      color: var(--gold2);
      font-size: 1.2rem;
      text-align: center;
    }

    .hero-stat span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: .72rem;
      text-align: center;
    }

    .input-soft,
    .select-soft {
      min-height: 44px;
      width: 100%;
      padding: 0 13px;
      color: var(--text);
      text-align: right;
      border: 1px solid rgba(201, 154, 83, .18);
      border-radius: 13px;
      background: rgba(255, 255, 255, .06);
      outline: 0;
    }

    .input-soft:focus,
    .select-soft:focus {
      border-color: rgba(242, 203, 130, .58);
      box-shadow: 0 0 0 3px rgba(201, 154, 83, .08);
    }

    .section {
      position: relative;
      overflow: hidden;
      padding: 78px 0;
      isolation: isolate;
      border-top: 1px solid rgba(201, 154, 83, .12);
    }

    .section::before,
    .section::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
    }

    .products-section::before {
      background:
        linear-gradient(145deg, rgba(25, 22, 17, .76), rgba(38, 34, 27, .58), rgba(24, 22, 18, .78)),
        radial-gradient(circle at 20% 18%, rgba(201,154,83,.15), transparent 26%);
      filter: saturate(1.04) contrast(1.02);
      transform: scale(1.02);
    }

    .products-section::after {
      background:
        radial-gradient(circle at 18% 16%, rgba(201, 154, 83, .12), transparent 26%),
        linear-gradient(90deg, rgba(20, 18, 14, .42), rgba(28, 25, 20, .20), rgba(20, 18, 14, .46));
      backdrop-filter: blur(1px);
    }

    .active-size-filter {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 24px;
      padding: 13px 16px;
      color: #e9dece;
      border: 1px solid rgba(242, 203, 130, .28);
      border-radius: 15px;
      background: linear-gradient(135deg, rgba(201, 154, 83, .13), rgba(5, 6, 7, .44));
    }
    .active-size-filter b { margin: 0 4px; color: var(--gold2); }
    .active-size-filter a { color: var(--gold2); font-size: .78rem; font-weight: 850; }
    .active-size-filter a:hover { color: #ffe0a9; }

    .section-head {
      margin-bottom: 28px;
      text-align: center;
    }

    .section-kicker {
      display: block;
      margin-bottom: 8px;
      color: var(--gold2);
      text-align: center;
      font-weight: 800;
    }

    .section-title {
      margin: 0;
      text-align: center;
      font-size: clamp(1.55rem, 3vw, 2.25rem);
      font-weight: 950;
    }

    .section-desc {
      max-width: 720px;
      margin: 14px auto 0;
      color: var(--muted);
      text-align: center;
      line-height: 1.9;
    }

    .product-layout {
      display: block;
    }

    

    .products-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
      padding: 12px;
      border: 1px solid rgba(201, 154, 83, .16);
      border-radius: 20px;
      background: rgba(5, 6, 7, .46);
      backdrop-filter: blur(12px);
    }

    .products-toolbar p {
      margin: 0;
      color: var(--muted);
      font-size: .82rem;
    }

    .products-toolbar strong { color: var(--gold2); }

    .view-switch {
      display: flex;
      gap: 7px;
    }

    .view-btn {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(201, 154, 83, .22);
      border-radius: 11px;
      color: var(--gold2);
      background: rgba(255, 255, 255, .04);
      transition: .2s;
    }

    .view-btn.active,
    .view-btn:hover {
      color: #130f08;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
    }

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

    .product-card {
      position: relative;
      overflow: hidden;
      min-height: 360px;
      border: 1px solid rgba(201, 154, 83, .15);
      border-radius: 22px;
      background: linear-gradient(145deg, rgba(31, 28, 22, .72), rgba(20, 20, 18, .74));
      box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
      transition: .28s ease;
    }

    .product-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(130deg, rgba(255, 255, 255, .04), transparent 38%, rgba(201, 154, 83, .08));
      opacity: .72;
    }

    .product-card:hover {
      transform: translateY(-7px);
      border-color: rgba(242, 203, 130, .54);
      box-shadow: 0 26px 72px rgba(0, 0, 0, .36), 0 0 36px rgba(201, 154, 83, .09);
    }

    .product-image-stage {
      position: relative;
      height: 220px;
      display: grid;
      place-items: center;
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 40%, rgba(242, 203, 130, .14), transparent 34%),
        linear-gradient(135deg, rgba(238, 225, 205, .16), rgba(32, 29, 23, .80));
    }

    .product-image-stage img {
      width: 78%;
      height: 78%;
      object-fit: cover;
      border: 1px solid rgba(255, 255, 255, .42);
      border-radius: 12px;
      box-shadow: 0 22px 52px rgba(0, 0, 0, .46);
      filter: saturate(1.1) contrast(1.08) brightness(1.07);
      transition: .45s ease;
    }

    .product-card:hover .product-image-stage img {
      transform: scale(1.08) rotate(-1deg);
      box-shadow: 0 30px 70px rgba(0, 0, 0, .62), 0 16px 34px rgba(242, 203, 130, .14);
    }

    .product-badge,
    .product-size {
      position: absolute;
      top: 14px;
      z-index: 2;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: .72rem;
      font-weight: 900;
    }

    .product-badge {
      right: 14px;
      color: #16110a;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
    }

    .product-size {
      left: 14px;
      color: #f4e8d8;
      border: 1px solid rgba(255, 255, 255, .12);
      background: rgba(5, 6, 7, .54);
      backdrop-filter: blur(10px);
    }

    .product-content {
      position: relative;
      z-index: 2;
      padding: 16px;
    }

    .product-content h3 {
      margin: 0 0 7px;
      color: #fff4e6;
      font-size: 1rem;
      font-weight: 950;
      text-align: right;
    }

    .product-content p {
      margin: 0;
      color: var(--muted);
      font-size: .78rem;
      line-height: 1.7;
      text-align: right;
    }

    .product-specs {
      display: grid;
      gap: 7px;
      margin-top: 12px;
    }

    .product-spec-row {
      display: grid;
      grid-template-columns: minmax(86px, auto) 1fr;
      align-items: start;
      gap: 8px;
      padding: 7px 9px;
      border: 1px solid rgba(201, 154, 83, .18);
      border-radius: 10px;
      background: rgba(0, 0, 0, .22);
      font-size: .69rem;
    }

    .product-spec-row > span {
      color: var(--muted);
    }

    .product-spec-row strong {
      color: #f4e8d8;
      font-weight: 800;
    }

    .product-size-values {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .product-size-values .size-ltr {
      padding: 2px 6px;
      border: 1px solid rgba(201, 154, 83, .2);
      border-radius: 999px;
      background: rgba(201, 154, 83, .08);
    }

    .product-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 12px;
    }

    .product-tags span {
      padding: 4px 8px;
      color: #e8dccb;
      border: 1px solid rgba(201, 154, 83, .18);
      border-radius: 999px;
      background: rgba(0, 0, 0, .22);
      font-size: .66rem;
    }

    .product-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      margin-top: 14px;
    }

    .product-actions a {
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      font-size: .76rem;
      font-weight: 850;
    }

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

    .products-grid.is-list-view .product-card {
      display: grid;
      grid-template-columns: minmax(250px, 30%) 1fr;
      min-height: 250px;
    }

    .products-grid.is-list-view .product-image-stage {
      height: 100%;
      min-height: 250px;
    }

    .products-grid.is-list-view .product-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 22px;
    }

    .products-grid.is-list-view .product-actions {
      max-width: 220px;
    }

    .pagination-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 28px;
      padding: 14px;
      border: 1px solid rgba(201, 154, 83, .13);
      border-radius: 20px;
      background: rgba(5, 6, 7, .36);
      backdrop-filter: blur(12px);
    }

    .page-btn {
      min-width: 38px;
      height: 38px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(201, 154, 83, .20);
      border-radius: 12px;
      color: #e9dece;
      background: rgba(255, 255, 255, .035);
      font-weight: 850;
      transition: .22s ease;
    }

    .page-btn:hover,
    .page-btn.active {
      color: #150f07;
      border-color: transparent;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      transform: translateY(-2px);
    }

    .advanced-modal .modal-content {
      color: var(--text);
      border: 1px solid rgba(201, 154, 83, .26);
      border-radius: 26px;
      background: linear-gradient(145deg, rgba(9, 10, 10, .98), rgba(34, 30, 24, .96));
      box-shadow: 0 34px 110px rgba(0, 0, 0, .64);
      overflow: hidden;
    }

    .advanced-modal .modal-header {
      border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .modal-title { color: var(--gold2); font-weight: 950; }

    .advanced-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .advanced-field label {
      display: block;
      margin-bottom: 7px;
      color: #d7cbbb;
      font-size: .78rem;
      font-weight: 850;
    }

    .modal-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-start;
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, .08);
    }

    footer {
      padding: 34px 0 24px;
      border-top: 1px solid rgba(201, 154, 83, .16);
      background:
        linear-gradient(135deg, rgba(22, 20, 16, .90), rgba(8, 9, 9, .96)),
        url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1400&q=65') center / cover;
    }

    .footer-box {
      max-width: 1120px;
      margin: 0 auto;
      padding: 16px;
      border: 1px solid rgba(201, 154, 83, .16);
      border-radius: 20px;
      background: linear-gradient(145deg, rgba(35, 31, 25, .48), rgba(17, 19, 18, .72));
      backdrop-filter: blur(12px);
      box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
    }

    .footer-box h4 {
      margin: 0 0 8px;
      color: var(--gold2);
      font-size: 1rem;
      font-weight: 900;
    }

    .footer-box p {
      margin: 0;
      color: var(--muted);
      line-height: 1.8;
      font-size: .84rem;
    }

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .65s ease, transform .65s ease;
    }

    .reveal.show {
      opacity: 1;
      transform: none;
    }

    @media (max-width: 1199.98px) {
      .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }

    @media (max-width: 991.98px) {
      .hero-stats { grid-template-columns: 1fr; }
      .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .advanced-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 575.98px) {
      .page-hero { padding-top: 112px; }
      .products-grid { grid-template-columns: 1fr; }
      .products-toolbar { display: block; }
      .active-size-filter { align-items: stretch; flex-direction: column; }
      .view-switch { margin-top: 10px; }
      .product-image-stage { height: 220px; }
      .products-grid.is-list-view .product-card { display: block; min-height: 360px; }
      .products-grid.is-list-view .product-image-stage { height: 220px; min-height: 0; }
      .products-grid.is-list-view .product-content { display: block; padding: 16px; }
      .products-grid.is-list-view .product-actions { max-width: none; }
    }
