/* ================= فروشگاه B2B انگلیسی (/en/shop) =================
   همه‌ی کلاس‌ها با پیشوند shop-؛ فقط در صفحات فروشگاه لود می‌شود و با
   استایل‌های عمومی (public-card و button و ...) تداخلی ندارد. LTR است. */

.shop-wrap { color: #1c2430; }

/* ---------- نان‌ریزbreadcrumb ---------- */
.shop-crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; margin-bottom: 14px; color: #64748b; }
.shop-crumb a { color: #0d5ba9; text-decoration: none; }
.shop-crumb a:hover { text-decoration: underline; }
.shop-crumb .sep { color: #b6c2d2; }
.shop-crumb .cur { color: #334155; font-weight: 600; }

/* ---------- چیدمان با ستون فیلتر ---------- */
.shop-with-facets { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .shop-with-facets { grid-template-columns: 1fr; } .shop-facets { order: 2; } }

/* ---------- فیلترها ---------- */
.shop-facets { background: #fff; border: 1px solid #e5eaf1; border-radius: 12px; padding: 6px 16px 14px; }
.shop-facets h3 { font-size: 15px; margin: 14px 0 2px; color: #0d5ba9; }
.shop-facet + .shop-facet { border-top: 1px solid #eef2f7; margin-top: 10px; padding-top: 4px; }
.shop-facet-title { font-weight: 700; font-size: 13.5px; margin: 10px 0 6px; }
.shop-facet label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 3px 0; cursor: pointer; color: #374151; }
.shop-facet label:hover { color: #0d5ba9; }
.shop-facet input[type="checkbox"] { accent-color: #0d5ba9; width: 15px; height: 15px; }

/* ---------- نوار بالا: مرتب‌سازی ---------- */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-count { font-size: 13.5px; color: #64748b; }
.shop-sort { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #64748b; }
.shop-sort select { border: 1px solid #d7dee8; border-radius: 8px; padding: 6px 10px; font-size: 13.5px; background: #fff; }

/* ---------- شبکه‌ی کارت محصول ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .shop-grid { grid-template-columns: 1fr; } }

.shop-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e5eaf1; border-radius: 12px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; text-decoration: none; }
.shop-card:hover { box-shadow: 0 8px 24px rgba(13, 91, 169, .12); transform: translateY(-2px); }
.shop-card-img { aspect-ratio: 4/3; background: #f6f8fb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-card-title { font-size: 16.5px; font-weight: 800; color: #16233a; margin: 0; line-height: 1.35; }
.shop-card-ref { font-size: 12px; color: #8a97a8; direction: ltr; }
.shop-card-desc { font-size: 13.5px; color: #5b6b7f; line-height: 1.55; margin: 0; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-chip { display: inline-block; font-size: 11.5px; line-height: 1; padding: 5px 9px; border: 1px solid #cfdcec; border-radius: 999px; color: #0d5ba9; background: #f4f8fd; }
.shop-price { margin-top: auto; font-size: 16px; font-weight: 800; color: #0d5ba9; direction: ltr; }
.shop-price .upon { color: #0f766e; font-size: 15px; }
.shop-card-cta { margin-top: 4px; display: inline-flex; justify-content: center; padding: 9px 12px; border: 1px solid #0d5ba9; color: #0d5ba9; border-radius: 8px; font-size: 13.5px; font-weight: 700; }
.shop-card:hover .shop-card-cta { background: #0d5ba9; color: #fff; }

/* ---------- صفحه‌ی اول: دسته‌ها ---------- */
.shop-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.shop-cat-card { background: #fff; border: 1px solid #e5eaf1; border-radius: 12px; padding: 18px; text-decoration: none; color: #16233a; transition: box-shadow .15s ease; }
.shop-cat-card:hover { box-shadow: 0 8px 24px rgba(13, 91, 169, .12); }
.shop-cat-card h3 { font-size: 16px; font-weight: 800; margin: 10px 0 4px; }
.shop-cat-card p { font-size: 13px; color: #5b6b7f; margin: 0; line-height: 1.5; }
.shop-cat-img { aspect-ratio: 5/3; border-radius: 8px; background: #f6f8fb; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 30px; }
.shop-cat-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- صفحه‌ی محصول ---------- */
.shop-product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; background: #fff; border: 1px solid #e5eaf1; border-radius: 14px; padding: 24px; }
@media (max-width: 900px) { .shop-product { grid-template-columns: 1fr; } }
.shop-gallery-main { aspect-ratio: 4/3; border-radius: 10px; background: #f6f8fb; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.shop-gallery-main .ph { font-size: 46px; opacity: .5; }
.shop-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.shop-thumb { width: 72px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #f6f8fb; padding: 0; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-thumb.active, .shop-thumb:hover { border-color: #0d5ba9; }

.shop-title { font-size: 26px; font-weight: 900; color: #101c30; margin: 0 0 6px; line-height: 1.25; }
.shop-ref { font-size: 13px; color: #8a97a8; margin-bottom: 12px; direction: ltr; }
.shop-summary { color: #46566b; line-height: 1.7; font-size: 14.5px; }

.shop-form-label { font-weight: 700; font-size: 13.5px; margin: 16px 0 8px; color: #16233a; }
.shop-form-label .req { color: #dc2626; }

.shop-pack-list { display: flex; flex-direction: column; gap: 0; border: 1px solid #e5eaf1; border-radius: 10px; overflow: hidden; }
.shop-pack-item { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #eef2f7; font-size: 13.5px; }
.shop-pack-item:last-child { border-bottom: 0; }
.shop-pack-item:hover { background: #f8fafd; }
.shop-pack-item.sel { background: #eef5fd; }
.shop-pack-item .code { color: #64748b; min-width: 84px; direction: ltr; }
.shop-pack-item input { accent-color: #0d5ba9; }
.shop-pack-item.unavail { color: #9aa7b8; cursor: not-allowed; background: #fafbfc; }
.shop-pack-price { margin-left: auto; direction: ltr; font-weight: 700; color: #0d5ba9; white-space: nowrap; }

.shop-select, .shop-qty { width: 100%; max-width: 420px; border: 1px solid #d7dee8; border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; }
.shop-qty { max-width: 160px; }

.shop-orderbox { margin-top: 20px; border: 1px solid #dbe6f3; border-radius: 12px; padding: 16px; background: #f8fbff; }
.shop-fromline { font-size: 15px; color: #46566b; margin: 0; direction: ltr; }
.shop-fromline b { font-size: 26px; color: #0d5ba9; font-weight: 900; }
.shop-fromline .upon { color: #0f766e; font-weight: 800; font-size: 20px; }
.shop-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #0d5ba9; color: #fff !important; border: 0; border-radius: 9px; padding: 13px 22px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; }
.shop-btn:hover { background: #0a4a8c; }
.shop-btn.outline { background: #fff; color: #0d5ba9 !important; border: 1px solid #0d5ba9; }
.shop-btn.outline:hover { background: #eef5fd; }
.shop-note-under { font-size: 12.5px; color: #64748b; margin-top: 10px; }

/* ---------- تب‌های پایین صفحه ---------- */
.shop-tabs { margin-top: 26px; background: #fff; border: 1px solid #e5eaf1; border-radius: 12px; overflow: hidden; }
.shop-tab-nav { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e5eaf1; background: #f8fafd; }
.shop-tab-btn { border: 0; background: transparent; padding: 13px 20px; font-size: 14px; font-weight: 700; color: #5b6b7f; cursor: pointer; border-bottom: 2px solid transparent; }
.shop-tab-btn.active { color: #0d5ba9; border-bottom-color: #0d5ba9; background: #fff; }
.shop-tab-panel { display: none; padding: 20px 22px; }
.shop-tab-panel.active { display: block; }

.shop-file-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #eef2f7; }
.shop-file-row:last-child { border-bottom: 0; }
.shop-file-row .ft { font-weight: 600; color: #16233a; font-size: 14px; }
.shop-file-row .fk { font-size: 11px; color: #0d5ba9; border: 1px solid #cfdcec; border-radius: 999px; padding: 3px 8px; background: #f4f8fd; white-space: nowrap; }
.shop-file-dl { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #0d5ba9; color: #fff; text-decoration: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.shop-file-dl:hover { background: #0a4a8c; }

.shop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop-table th, .shop-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef2f7; }
.shop-table th { color: #64748b; font-weight: 600; width: 30%; }
.shop-table td { color: #16233a; }
.shop-table-group td { background: #f8fafd; font-weight: 800; color: #0d5ba9; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }

.shop-rich { line-height: 1.8; color: #374151; font-size: 14.5px; overflow-wrap: break-word; }
.shop-rich img { max-width: 100%; }

/* ---------- پیام‌های شیرین ---------- */
.shop-alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.shop-alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.shop-alert.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
