.shop-page { background: #fff; color: var(--nw-ink); }
.shop-page main { width: 100%; min-height: 60vh; flex: 1 0 auto; }
.shop-wrap { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.shop-hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 86px) 0; border-bottom: 1px solid var(--nw-line); background: linear-gradient(120deg, #f5f7fa 0%, #fff 56%, #fff0f1 100%); }
.shop-hero::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -210px; top: -280px; border: 86px solid rgba(201, 47, 53, .055); border-radius: 50%; }
.shop-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: clamp(36px, 6vw, 74px); align-items: end; }
.shop-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--nw-red); font-size: .8rem; font-weight: 900; letter-spacing: .08em; }
.shop-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--nw-red), var(--nw-gold)); }
.shop-hero h1 { max-width: 760px; margin: 14px 0 13px; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1.14; letter-spacing: -.045em; }
.shop-hero p { max-width: 730px; margin: 0; color: var(--nw-muted); font-size: 1rem; line-height: 2.05; }
.shop-keywords { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.shop-keywords a { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--nw-line); border-radius: 99px; background: #fff; color: var(--nw-ink); text-decoration: none; font-size: .82rem; font-weight: 750; transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.shop-keywords a:hover { transform: translateY(-2px); border-color: var(--nw-red); color: var(--nw-red); }
.shop-keywords small { color: var(--nw-muted); font-family: Arial, sans-serif; }
.shop-search { padding: 24px; border: 1px solid rgba(255, 255, 255, .88); border-radius: 22px; background: rgba(255, 255, 255, .86); box-shadow: var(--nw-shadow-md); backdrop-filter: blur(16px); }
.shop-search label { display: block; margin-bottom: 10px; font-size: .9rem; font-weight: 850; }
.shop-search > div { display: flex; overflow: hidden; border: 1px solid var(--nw-line); border-radius: 14px; background: #fff; }
.shop-search input { min-width: 0; flex: 1; height: 56px; padding: 0 16px; border: 0; outline: 0; background: transparent; color: inherit; font-size: .92rem; }
.shop-search input:focus { box-shadow: inset 0 0 0 2px rgba(201, 47, 53, .15); }
.shop-search button { width: 60px; padding: 0; border: 0; border-radius: 0; background: var(--nw-red); color: #fff; font-size: 1.7rem; }
.shop-search button:hover { background: var(--nw-red-strong); transform: none; }

.shop-content { min-height: 580px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; align-items: start; padding-block: 50px 86px; }
.shop-filter { position: sticky; top: 20px; overflow: hidden; border: 1px solid var(--nw-line); border-radius: 19px; background: #fff; box-shadow: var(--nw-shadow-sm); }
.shop-filter__heading { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--nw-line); }
.shop-filter__heading strong { font-size: 1rem; }
.shop-filter__heading span { color: var(--nw-muted); font-size: .76rem; }
.shop-category-list { padding: 9px; }
.shop-category-list a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--nw-ink); text-decoration: none; font-size: .86rem; font-weight: 720; transition: background .2s ease, color .2s ease; }
.shop-category-list a:hover { background: var(--nw-soft); }
.shop-category-list a.is-active { background: var(--nw-red); color: #fff; }
.shop-category-list a b { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 99px; background: rgba(128, 128, 128, .13); font-size: .7rem; }
.shop-subcategories { margin: 3px 12px 8px; padding-inline-start: 10px; border-inline-start: 1px solid var(--nw-line); }
.shop-subcategories a { min-height: 40px; font-size: .78rem; }
.shop-results { min-width: 0; padding-bottom: 4px; }
.shop-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--nw-line); }
.shop-toolbar > div { display: flex; align-items: center; gap: 10px; }
.shop-toolbar > div span { font-size: 1.22rem; font-weight: 900; }
.shop-toolbar small { color: var(--nw-red); }
.shop-toolbar form { display: flex; align-items: center; gap: 9px; }
.shop-toolbar label { color: var(--nw-muted); font-size: .78rem; }
.shop-toolbar select { min-height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--nw-line); border-radius: 11px; background: #fff; color: var(--nw-ink); }

.product-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 8px; }
.product-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--nw-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(23, 32, 45, .045); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(201, 47, 53, .28); box-shadow: var(--nw-shadow-md); }
.product-card__media { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.22; padding: 26px; background: linear-gradient(150deg, #f8f9fb, #edf0f4); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.045); }
.product-card__media > span { position: absolute; inset-inline-start: 13px; top: 13px; max-width: calc(100% - 26px); padding: 6px 10px; overflow: hidden; border-radius: 99px; background: rgba(24, 34, 49, .86); color: #fff; font-size: .68rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.product-card__body { flex: 1; display: flex; flex-direction: column; padding: 19px; }
.product-card h2 { margin: 0 0 9px; font-family: var(--nw-font); font-size: 1.02rem; line-height: 1.65; }
.product-card h2 a { color: var(--nw-ink); text-decoration: none; }
.product-card p { display: -webkit-box; overflow: hidden; margin: 0 0 18px; color: var(--nw-muted); font-size: .78rem; line-height: 1.9; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.product-card__foot { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--nw-line); }
.product-card__foot > span { color: var(--nw-red); font-size: .73rem; font-weight: 800; }
.product-card__foot a { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; color: var(--nw-ink); text-decoration: none; font-size: .78rem; font-weight: 900; }
.product-card__foot a b { color: var(--nw-red); }
.shop-empty { min-height: 350px; display: grid; place-items: center; padding: 40px; border: 1px dashed #c9d0d9; border-radius: 20px; background: var(--nw-soft); text-align: center; }
.shop-empty strong { font-size: 1.15rem; }
.shop-empty a { margin-top: 15px; color: var(--nw-red); }
.shop-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 38px; padding-bottom: 5px; }
.shop-pagination a, .shop-pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--nw-line); border-radius: 11px; color: var(--nw-ink); text-decoration: none; }
.shop-pagination a.is-active { border-color: var(--nw-red); background: var(--nw-red); color: #fff; }

@media (max-width: 1050px) {
  .shop-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .shop-content { grid-template-columns: 230px minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shop-wrap { width: min(100% - 24px, 1220px); }
  .shop-hero { padding: 46px 0; }
  .shop-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .shop-hero p { font-size: .92rem; }
  .shop-search { padding: 16px; border-radius: 18px; }
  .shop-search input { height: 56px; }
  .shop-keywords { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .shop-keywords::-webkit-scrollbar { display: none; }
  .shop-keywords a { flex: 0 0 auto; min-height: 46px; }
  .shop-content { display: block; min-height: 0; padding-top: 24px; padding-bottom: 64px; }
  .shop-filter { position: static; margin-bottom: 24px; box-shadow: none; }
  .shop-category-list { display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .shop-category-list::-webkit-scrollbar { display: none; }
  .shop-category-group { flex: 0 0 auto; }
  .shop-category-list > a, .shop-category-group > a { min-height: 48px; white-space: nowrap; border: 1px solid var(--nw-line); }
  .shop-subcategories { display: none; }
  .shop-toolbar { align-items: flex-start; flex-direction: column; }
  .shop-toolbar form { width: 100%; justify-content: space-between; }
  .shop-toolbar select { flex: 1; max-width: 220px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 18px; }
  .product-card__media { aspect-ratio: 1.35; }
}

.product-card__foot a { min-height: 48px; padding-block: 8px; }

/* V4.2 Persian search alignment and local icon sizing. */
[dir="rtl"] .shop-search input[type="search"] { direction: rtl; text-align: right; }
[dir="rtl"] .shop-search input[type="search"]::placeholder { direction: rtl; text-align: right; }
[dir="ltr"] .shop-search input[type="search"] { direction: ltr; text-align: left; }
.shop-search button > i { font-size: 1rem; }
.shop-sidebar a > i,.product-card__foot a > i,.shop-pagination a > i { font-size: .78rem; }
