/* Care + RTL for Shams/Cbil Beauty */
:root {
  --care-primary: #c97b84;
  --care-primary-dark: #a85d66;
  --care-text: #2c2c2c;
  --care-muted: #8a8a8a;
  --care-bg: #faf7f5;
  --care-border: #eee8e6;
  --care-radius: 12px;
  --care-shadow: 0 10px 30px rgba(0,0,0,.06);
  --font-fa: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
}

html { direction: rtl; }
body {
  font-family: var(--font-fa) !important;
  color: var(--care-text);
  background: #fff;
  text-align: right;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--care-primary); }

.container-care {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Header */
.cb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--care-border);
}
.cb-topbar {
  background: var(--care-text);
  color: #fff;
  font-size: 12px;
  padding: 8px 0;
  text-align: center;
}
@media (max-width: 768px) {
  .cb-topbar { display: none; }
}
.cb-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.cb-logo img { height: 36px; }
.cb-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--care-primary-dark);
}
.cb-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cb-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--care-text);
  transition: color .2s;
}
.cb-nav a:hover { color: var(--care-primary); }
.cb-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cb-actions a, .cb-actions button {
  border: 0;
  background: transparent;
  position: relative;
  color: var(--care-text);
  font-size: 14px;
  cursor: pointer;
}
.cb-badge {
  position: absolute;
  top: -6px;
  left: -8px;
  background: var(--care-primary);
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cb-search {
  flex: 1;
  max-width: 360px;
}
.cb-search input {
  width: 100%;
  border: 1px solid var(--care-border);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  background: var(--care-bg);
}
.cb-search input:focus {
  outline: none;
  border-color: var(--care-primary);
  background: #fff;
}

/* Mobile menu */
.cb-burger { display: none; font-size: 22px; background: none; border: 0; }
.cb-mobile {
  display: none;
  border-top: 1px solid var(--care-border);
  padding: 12px 0 16px;
}
.cb-mobile.open { display: block; }
.cb-mobile a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--care-border);
  font-size: 14px;
}

@media (max-width: 992px) {
  .cb-nav, .cb-search { display: none; }
  .cb-burger { display: inline-flex; }
}

/* Product card - Care style */
.product-card {
  background: #fff;
  border-radius: var(--care-radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--care-shadow);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--care-bg);
  overflow: hidden;
  display: block;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--care-primary);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.product-card__body {
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
}
.product-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__price .current {
  color: var(--care-primary-dark);
  font-weight: 700;
  font-size: 15px;
}
.product-card__price .old {
  color: var(--care-muted);
  text-decoration: line-through;
  font-size: 13px;
}
.product-card__rating {
  font-size: 12px;
  color: #e6a800;
}
.product-card__btn {
  margin-top: auto;
  width: 100%;
  border: 1px solid var(--care-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.product-card__btn:hover {
  background: var(--care-primary);
  border-color: var(--care-primary);
  color: #fff;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 28px;
}
.section-title h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 8px;
}
.section-title p {
  color: var(--care-muted);
  margin: 0;
  font-size: 14px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Hero */
.cb-hero {
  background: linear-gradient(135deg, #f8ecee 0%, #faf7f5 50%, #fff 100%);
  padding: 48px 0 56px;
}
.cb-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.cb-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 800;
}
.cb-hero p {
  color: var(--care-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 22px;
}
.btn-care {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--care-primary);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  transition: .2s;
}
.btn-care:hover { background: var(--care-primary-dark); color: #fff !important; }
.btn-care-outline {
  background: transparent;
  color: var(--care-text) !important;
  border: 1px solid var(--care-border);
}
.btn-care-outline:hover {
  border-color: var(--care-primary);
  color: var(--care-primary) !important;
}
@media (max-width: 768px) {
  .cb-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .cb-hero-actions { justify-content: center; }
}

/* Features strip */
.cb-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--care-border);
}
.cb-feature {
  text-align: center;
  padding: 12px;
}
.cb-feature strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cb-feature span { font-size: 12px; color: var(--care-muted); }
@media (max-width: 768px) {
  .cb-features { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.cb-footer {
  background: #1f1f1f;
  color: #cfcfcf;
  padding: 48px 0 24px;
  margin-top: 48px;
  font-size: 14px;
}
.cb-footer a { color: #cfcfcf; }
.cb-footer a:hover { color: #fff; }
.cb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.cb-footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
}
.cb-footer ul { list-style: none; padding: 0; margin: 0; }
.cb-footer li { margin-bottom: 8px; }
.cb-footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #888;
}
@media (max-width: 768px) {
  .cb-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Utility */
.py-section { padding: 48px 0; }
.text-muted-care { color: var(--care-muted); }

/* ========== Product listing ========== */
.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 28px 0 48px;
}
@media (max-width: 992px) {
  .listing-layout { grid-template-columns: 1fr; }
}
.listing-sidebar {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 18px;
  height: fit-content;
}
@media (min-width: 993px) {
  .listing-sidebar {
    position: sticky;
    top: 88px;
  }
}
/* موبایل: فیلتر جمع‌شونده */
.filter-toggle {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--care-border);
  background: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 992px) {
  .filter-toggle { display: flex; justify-content: space-between; align-items: center; }
  .listing-sidebar {
    display: none;
    margin-bottom: 16px;
    position: static !important;
    max-height: none;
  }
  .listing-sidebar.open { display: block; }
  .listing-layout { gap: 12px; }
}
.listing-sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--care-border);
}
.listing-sidebar .filter-block { margin-bottom: 20px; }
.listing-sidebar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--care-text);
}
.listing-sidebar input[type="checkbox"] {
  accent-color: var(--care-primary);
}
.listing-sidebar .price-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.listing-sidebar .price-row input {
  width: 100%;
  border: 1px solid var(--care-border);
  border-radius: 8px;
  padding: 8px;
  font-family: inherit;
  font-size: 13px;
}
.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.listing-toolbar h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}
.listing-toolbar .count {
  color: var(--care-muted);
  font-size: 13px;
}
.listing-toolbar select {
  border: 1px solid var(--care-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.pagination-care {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination-care a,
.pagination-care span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--care-border);
  font-size: 13px;
  color: var(--care-text);
  padding: 0 10px;
}
.pagination-care .active {
  background: var(--care-primary);
  border-color: var(--care-primary);
  color: #fff;
}
.listing-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--care-muted);
  background: var(--care-bg);
  border-radius: var(--care-radius);
}
.breadcrumb-care {
  font-size: 13px;
  color: var(--care-muted);
  padding: 16px 0 0;
}
.breadcrumb-care a { color: var(--care-muted); }
.breadcrumb-care a:hover { color: var(--care-primary); }

/* ========== Product detail ========== */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 24px 0 40px;
}
@media (max-width: 768px) {
  .pd-layout { grid-template-columns: 1fr; gap: 20px; }
}
.pd-gallery-main {
  background: var(--care-bg);
  border-radius: var(--care-radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.pd-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 72px;
  height: 72px;
  background: var(--care-bg);
  cursor: pointer;
}
.pd-thumbs button.active,
.pd-thumbs button:hover {
  border-color: var(--care-primary);
}
.pd-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.5;
}
.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--care-muted);
  margin-bottom: 16px;
}
.pd-price-box {
  background: var(--care-bg);
  border-radius: var(--care-radius);
  padding: 16px;
  margin-bottom: 18px;
}
.pd-price-box .current {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--care-primary-dark);
}
.pd-price-box .old {
  text-decoration: line-through;
  color: var(--care-muted);
  margin-right: 10px;
  font-size: 14px;
}
.pd-price-box .discount {
  background: var(--care-primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
}
.pd-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.pd-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
  cursor: pointer;
  padding: 0;
}
.pd-color.active {
  box-shadow: 0 0 0 2px var(--care-primary);
}
.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--care-border);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 10px;
}
.pd-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}
.pd-qty input {
  width: 48px;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
}
.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.pd-stock {
  font-size: 13px;
  margin: 8px 0 16px;
}
.pd-stock.ok { color: #1a7f37; }
.pd-stock.out { color: #c62828; }
.pd-tabs {
  border-top: 1px solid var(--care-border);
  padding: 32px 0 48px;
}
.pd-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pd-tabs-nav button {
  border: 1px solid var(--care-border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pd-tabs-nav button.active {
  background: var(--care-primary);
  border-color: var(--care-primary);
  color: #fff;
}
.pd-tab-panel {
  display: none;
  line-height: 1.9;
  font-size: 14px;
  color: #444;
}
.pd-tab-panel.active { display: block; }
.pd-comment {
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.pd-comment .author { font-weight: 600; font-size: 13px; }
.pd-comment .date { color: var(--care-muted); font-size: 12px; }
.pd-comment .body { margin-top: 8px; font-size: 14px; }
.pd-related {
  padding: 0 0 48px;
}

/* ========== Cart ========== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 24px 0 48px;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}
.cart-item {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
}
.cart-item td {
  padding: 14px;
  vertical-align: middle;
}
.cart-item-product {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cart-item-product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--care-bg);
}
.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.5;
}
.cart-item-meta {
  font-size: 12px;
  color: var(--care-muted);
}
.cart-summary {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 88px;
}
.cart-summary h2 {
  font-size: 16px;
  margin: 0 0 16px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  color: #555;
}
.cart-summary-row.total {
  font-size: 15px;
  font-weight: 700;
  color: var(--care-text);
  border-top: 1px solid var(--care-border);
  padding-top: 12px;
  margin-top: 8px;
}
.cart-coupon {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.cart-coupon input {
  flex: 1;
  border: 1px solid var(--care-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
}
.cart-empty {
  text-align: center;
  padding: 64px 16px;
  background: var(--care-bg);
  border-radius: var(--care-radius);
  margin: 32px 0 48px;
}
.cart-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0 8px;
  font-size: 13px;
}
.cart-steps span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--care-border);
  color: var(--care-muted);
}
.cart-steps span.active {
  background: var(--care-primary);
  border-color: var(--care-primary);
  color: #fff;
}
@media (max-width: 600px) {
  .cart-item-product img { width: 60px; height: 60px; }
  .cart-table, .cart-item, .cart-item tr, .cart-item td {
    display: block;
    width: 100%;
  }
  .cart-item { padding: 8px; margin-bottom: 12px; }
}

/* ========== Checkout / Payment ========== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 24px 0 48px;
}
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-card {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.checkout-card h2 {
  font-size: 15px;
  margin: 0 0 14px;
  font-weight: 700;
}
.address-card {
  border: 1px solid var(--care-border);
  border-radius: 12px;
  padding: 14px;
  background: var(--care-bg);
  font-size: 13px;
  line-height: 1.8;
}
.address-card strong { color: var(--care-text); }
.ship-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--care-border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
}
.ship-option:has(input:checked),
.ship-option.active {
  border-color: var(--care-primary);
  background: #fff5f6;
}
.success-box {
  text-align: center;
  padding: 48px 20px;
  background: var(--care-bg);
  border-radius: var(--care-radius);
  margin: 32px 0 48px;
}
.success-box .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}
.success-box h1 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 480px;
  margin: 20px auto;
  text-align: right;
  font-size: 13px;
}
.order-info-grid div {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: 10px;
  padding: 10px 12px;
}
@media (max-width: 500px) {
  .order-info-grid { grid-template-columns: 1fr; }
}

/* ========== Dashboard ========== */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px 0 48px;
}
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
}
.dash-side {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 88px;
}
.dash-side .user {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--care-border);
  margin-bottom: 12px;
}
.dash-side .user img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--care-bg);
}
.dash-side .user .name {
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}
.dash-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--care-text);
  margin-bottom: 4px;
}
.dash-nav a:hover,
.dash-nav a.active {
  background: #fff5f6;
  color: var(--care-primary-dark);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
.dash-stat {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 16px;
  text-align: center;
}
.dash-stat .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--care-primary-dark);
}
.dash-stat .lbl {
  font-size: 12px;
  color: var(--care-muted);
  margin-top: 4px;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 16px;
  margin-bottom: 16px;
}
.dash-card h2 {
  font-size: 15px;
  margin: 0 0 12px;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--care-border);
  font-size: 13px;
}
.order-row:last-child { border-bottom: 0; }
.badge-care {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-paid, .badge-processing { background: #e3f2fd; color: #1565c0; }
.badge-delivered { background: #e8f5e9; color: #2e7d32; }
.badge-cancelled, .badge-returned { background: #ffebee; color: #c62828; }
.badge-pending { background: #fff3e0; color: #ef6c00; }

/* ========== Forms / Auth / Pages ========== */
.auth-wrap {
  max-width: 420px;
  margin: 32px auto 56px;
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  padding: 28px 24px;
}
.auth-wrap h1 {
  font-size: 1.25rem;
  margin: 0 0 8px;
  text-align: center;
}
.auth-wrap .sub {
  text-align: center;
  color: var(--care-muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.form-care p,
.form-care .form-group {
  margin-bottom: 14px;
}
.form-care label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-care input[type="text"],
.form-care input[type="password"],
.form-care input[type="email"],
.form-care input[type="tel"],
.form-care input[type="number"],
.form-care input[type="file"],
.form-care textarea,
.form-care select {
  width: 100%;
  border: 1px solid var(--care-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.form-care textarea { min-height: 110px; resize: vertical; }
.form-care input:focus,
.form-care textarea:focus,
.form-care select:focus {
  outline: none;
  border-color: var(--care-primary);
}
.form-care .errorlist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  color: #c62828;
  font-size: 12px;
}
.form-care ul.errorlist { margin-bottom: 8px; }
.auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}
.auth-links a { color: var(--care-primary-dark); font-weight: 600; }
.page-hero-simple {
  padding: 28px 0 8px;
  text-align: center;
}
.page-hero-simple h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.content-prose {
  max-width: 800px;
  margin: 0 auto 48px;
  line-height: 1.9;
  font-size: 14px;
  color: #444;
}
.content-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 48px;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: var(--care-radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--care-shadow);
  transform: translateY(-3px);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--care-bg);
}
.blog-card .body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.5;
  font-weight: 700;
}
.blog-card .meta {
  font-size: 12px;
  color: var(--care-muted);
  margin-top: auto;
}
.address-list-item {
  border: 1px solid var(--care-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.8;
}
.address-list-item .badge-default {
  display: inline-block;
  background: #fff5f6;
  color: var(--care-primary-dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* Banner carousel */

/* Banner carousel — soft fade + swipe */
.cb-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #f3d6da, #fff);
  aspect-ratio: 16/7;
  min-height: 220px;
  user-select: none;
  touch-action: pan-y;
  isolation: isolate;
}
.cb-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.cb-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity .7s cubic-bezier(.4, 0, .2, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .7s;
  will-change: opacity, transform;
  z-index: 0;
}
.cb-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition:
    opacity .7s cubic-bezier(.4, 0, .2, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 0s;
  z-index: 1;
}
.cb-carousel-slide a {
  position: absolute;
  inset: 0;
  display: block;
}
.cb-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cb-carousel-slide .caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 22px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease .15s, transform .5s ease .15s;
}
.cb-carousel-slide.is-active .caption {
  opacity: 1;
  transform: translateY(0);
}
.cb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: #333;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: background .2s, transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cb-carousel-btn:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.cb-carousel-btn:active { transform: translateY(-50%) scale(.94); }
.cb-carousel-btn.prev { right: 14px; }
.cb-carousel-btn.next { left: 14px; }
.cb-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}
.cb-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.45);
  padding: 0;
  cursor: pointer;
  transition: width .35s cubic-bezier(.4,0,.2,1), background .25s;
}
.cb-carousel-dots button.active {
  width: 22px;
  background: #fff;
}
@media (max-width: 768px) {
  .cb-carousel { aspect-ratio: 16/10; border-radius: 14px; min-height: 160px; }
  .cb-carousel-btn { width: 34px; height: 34px; font-size: 16px; }
  .cb-carousel-btn.prev { right: 8px; }
  .cb-carousel-btn.next { left: 8px; }
  .cb-hero { padding: 20px 0 28px; }
}


/* ========== Home UX v2 ========== */
.promo-strip {
  background: linear-gradient(90deg, #2c2c2c, #4a3034);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 8px 12px;
  letter-spacing: .01em;
}
.promo-strip a { color: #ffd6db; font-weight: 600; }

.cb-hero-v2 { padding: 0 0 8px; }
.cb-hero-v2 .cb-carousel {
  border-radius: 0;
}
@media (max-width: 768px) {
  /* موبایل: ارتفاع کادر با نسبت هر بنر تنظیم می‌شود تا نه برش بخورد نه فضای خالی بماند */
  .cb-hero-v2 .cb-carousel {
    aspect-ratio: 8/3;
    min-height: 0;
    transition: aspect-ratio .45s ease;
  }
  .cb-hero-v2 .cb-carousel-btn { width: 32px; height: 32px; font-size: 15px; }
  .cb-hero-v2 .cb-carousel-btn.prev { right: 8px; }
  .cb-hero-v2 .cb-carousel-btn.next { left: 8px; }
}
@media (min-width: 769px) {
  .cb-hero-v2 { padding: 20px 0 8px; }
  .cb-hero-v2 .cb-carousel {
    border-radius: 20px;
    aspect-ratio: 16/6;
    min-height: 280px;
  }
}

.hero-cta-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 8px;
  text-align: center;
}
.hero-cta-bar h1 {
  font-size: clamp(1.15rem, 4vw, 1.65rem);
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
}
.hero-cta-bar p {
  margin: 0;
  color: var(--care-muted);
  font-size: 13px;
  line-height: 1.7;
}
.hero-cta-bar .btn-care {
  width: 100%;
  justify-content: center;
  max-width: 320px;
  margin-inline: auto;
  padding: 14px 20px;
  font-size: 15px;
}
.hero-cta-bar .link-secondary {
  font-size: 13px;
  color: var(--care-muted);
}
.hero-cta-bar .link-secondary a {
  color: var(--care-primary-dark);
  font-weight: 600;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 0 4px;
}
.trust-row .item {
  text-align: center;
  background: var(--care-bg);
  border-radius: 12px;
  padding: 12px 6px;
  font-size: 11px;
  line-height: 1.5;
}
.trust-row .item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
  color: var(--care-text);
}
@media (min-width: 769px) {
  .trust-row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .trust-row .item { font-size: 12px; padding: 14px 10px; display: block !important; }
  .trust-row .item strong { font-size: 13px; }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  margin: 0;
  font-weight: 800;
}
.section-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--care-muted);
}
.section-head a {
  font-size: 13px;
  white-space: nowrap;
  color: var(--care-primary-dark);
  font-weight: 600;
}

/* اسکرول افقی موبایل */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 14px;
  margin: 0;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
/* موبایل: دقیقاً ۲ کارت کامل در عرض — بدون کارت نصفه */
.h-scroll > * {
  flex: 0 0 calc((100% - 12px) / 2);
  max-width: none;
  min-width: 0;
  scroll-snap-align: start;
}
.h-scroll .product-card {
  width: 100%;
}
@media (min-width: 600px) and (max-width: 992px) {
  /* تبلت: ۳ کارت کامل */
  .h-scroll > * {
    flex: 0 0 calc((100% - 24px) / 3);
  }
}
@media (min-width: 993px) {
  .h-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    gap: 20px;
    padding-bottom: 0;
  }
  .h-scroll > * { max-width: none; flex: none; min-width: 0; }
}

.cat-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  font-size: 11px;
  color: var(--care-text);
}
.cat-chip .img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: var(--care-bg);
  overflow: hidden;
  border: 1px solid var(--care-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-chip .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-chip .img span {
  font-size: 20px;
  color: var(--care-primary);
  font-weight: 700;
}
@media (min-width: 993px) {
  .cat-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    overflow: visible;
  }
  .cat-chip { width: auto; }
  .cat-chip .img { width: 72px; height: 72px; }
}

.product-card__badge--soft {
  background: #2c2c2c;
}
.discount-hint {
  text-align: center;
  font-size: 12px;
  color: var(--care-primary-dark);
  font-weight: 600;
  margin: 0 0 10px;
}


/* Home cleanup */
.hero-cta-bar { padding: 14px 0 4px; gap: 8px; }
.hero-cta-bar h1 { margin: 0; }
.hero-cta-bar .btn-care { margin-top: 4px; }
.cb-hero-v2 .trust-row { display: none; }
@media (min-width: 769px) {
  .cb-hero-v2 .trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 16px;
  }
}
.promo-strip { font-size: 12px; padding: 7px 12px; }


/* hide only the old in-hero trust if any left */
.cb-hero-v2 .trust-row { display: none !important; }

/* ========== Trust bottom — mobile first ========== */
.trust-bottom {
  padding: 8px 0 28px;
  background: transparent;
}
.trust-bottom .trust-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
}
.trust-bottom .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid var(--care-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  min-height: 96px;
}
.trust-bottom .trust-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff5f6;
  color: var(--care-primary-dark);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1;
}
.trust-bottom .item strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--care-text);
  margin: 0;
  display: block;
}
.trust-bottom .item span:not(.trust-ico) {
  font-size: 11px;
  color: var(--care-muted);
  line-height: 1.4;
}
@media (min-width: 769px) {
  .trust-bottom {
    padding: 12px 0 40px;
  }
  .trust-bottom .trust-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .trust-bottom .item {
    padding: 20px 14px;
    min-height: 110px;
  }
  .trust-bottom .trust-ico {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
  .trust-bottom .item strong { font-size: 14px; }
  .trust-bottom .item span:not(.trust-ico) { font-size: 12px; }
}
.cb-hero-v2 .trust-row { display: none !important; }

/* ========== Home categories top ========== */
.home-cats {
  padding: 8px 0 4px;
  background: #fff;
}
.home-cats .section-head {
  margin-bottom: 10px;
}
.home-cats .cat-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.home-cats .cat-row::-webkit-scrollbar { display: none; }
.home-cats .cat-chip {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  color: var(--care-text);
  scroll-snap-align: start;
  text-decoration: none;
}
.home-cats .cat-chip .img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: linear-gradient(145deg, #fff5f6, #f7f7f8);
  border: 1px solid var(--care-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.home-cats .cat-chip:hover .img,
.home-cats .cat-chip:active .img {
  transform: translateY(-2px);
  border-color: var(--care-primary);
  box-shadow: 0 4px 12px rgba(214, 59, 70, .12);
}
.home-cats .cat-chip .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-cats .cat-letter {
  font-size: 18px;
  font-weight: 800;
  color: var(--care-primary-dark);
  line-height: 1;
}
.home-cats .cat-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--care-text);
}
@media (min-width: 993px) {
  .home-cats {
    padding: 16px 0 8px;
  }
  .home-cats .cat-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    overflow: visible;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: none;
  }
  .home-cats .cat-chip {
    width: auto;
  }
  .home-cats .cat-chip .img {
    width: 72px;
    height: 72px;
  }
  .home-cats .cat-name {
    font-size: 12px;
  }
}


/* ========== Product detail mobile polish ========== */
.pd-page { padding-bottom: 88px; }
@media (min-width: 769px) {
  .pd-page { padding-bottom: 24px; }
}
.pd-breadcrumb-wrap { padding-top: 8px; }
.pd-breadcrumb {
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 8px !important;
}
.pd-breadcrumb::-webkit-scrollbar { display: none; }

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-left: -16px;
    margin-right: -16px;
  }
  .pd-gallery {
    margin: 0;
  }
  .pd-gallery-main {
    border-radius: 0;
    aspect-ratio: 1;
    background: #f6f6f6;
  }
  .pd-info {
    padding: 0 16px;
  }
  .pd-thumbs {
    padding: 0 16px;
    margin-top: 10px;
  }
}

.pd-gallery-main {
  position: relative;
  background: var(--care-bg);
  border-radius: var(--care-radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-badge-disc {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--care-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.pd-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs button {
  flex: 0 0 auto;
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 64px;
  height: 64px;
  background: var(--care-bg);
  cursor: pointer;
}
.pd-thumbs button.active { border-color: var(--care-primary); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-title {
  font-size: clamp(1.05rem, 4vw, 1.55rem);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.45;
}
.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--care-muted);
  margin-bottom: 12px;
}
.pd-rating { color: #c9a000; font-weight: 600; }
.pd-rating em { font-style: normal; color: var(--care-muted); font-weight: 500; }

.pd-price-box {
  background: var(--care-bg);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-price-box .current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--care-primary-dark);
}
.pd-price-box .current small {
  font-size: 13px;
  font-weight: 600;
}
.pd-price-box .old {
  text-decoration: line-through;
  color: var(--care-muted);
  font-size: 13px;
}
.pd-stock { font-size: 12px; margin-top: 6px; }
.pd-stock.ok { color: #1a7f37; }
.pd-stock.out { color: #c62828; }

.pd-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pd-block { margin-bottom: 14px; }
.pd-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
  cursor: pointer;
  padding: 0;
}
.pd-color.active { box-shadow: 0 0 0 2px var(--care-primary); }

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--care-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.pd-qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.pd-qty input {
  width: 44px;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  -moz-appearance: textfield;
}
.pd-qty input::-webkit-outer-spin-button,
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-add-btn {
  flex: 1;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
}
.pd-wish {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  font-size: 18px;
}

.pd-tabs { margin: 8px 0 24px; }
.pd-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--care-border);
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}
.pd-tabs-nav::-webkit-scrollbar { display: none; }
.pd-tabs-nav button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--care-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pd-tabs-nav button.active {
  color: var(--care-primary-dark);
  border-bottom-color: var(--care-primary);
}
.pd-tab-panel { display: none; }
.pd-tab-panel.active { display: block; }
.pd-desc {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}
.pd-desc img { max-width: 100%; height: auto; border-radius: 12px; }
.pd-comment {
  border: 1px solid var(--care-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.pd-comment .author { font-weight: 700; font-size: 13px; }
.pd-comment .date { color: var(--care-muted); font-size: 12px; }
.pd-comment .body { margin-top: 8px; font-size: 14px; line-height: 1.7; }
.pd-comment-form textarea {
  width: 100%;
  border: 1px solid var(--care-border);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
  resize: vertical;
}
.pd-login-hint { font-size: 13px; margin-top: 12px; }
.pd-related { margin: 8px 0 24px; }

/* Sticky buy bar — mobile only */
.pd-sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .pd-sticky-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--care-border);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(0,0,0,.06);
  }
  .pd-sticky-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
  }
  .pd-sticky-price .current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--care-primary-dark);
  }
  .pd-sticky-price small {
    font-size: 11px;
    color: var(--care-muted);
  }
  .pd-sticky-price .old {
    width: 100%;
    font-size: 11px;
    color: var(--care-muted);
    text-decoration: line-through;
  }
  .pd-sticky-add {
    flex: 1;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    white-space: nowrap;
  }
  /* روی موبایل دکمه‌های دسکتاپ جمع‌وجورتر */
  .pd-actions-desktop .pd-add-btn { width: 100%; }
  .pd-actions-desktop {
    display: flex;
  }
}

@media (min-width: 769px) {
  .pd-sticky-bar { display: none !important; }
  .pd-page { padding-bottom: 32px; }
}

/* ========== Image load performance ========== */
.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--care-bg);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--care-bg);
}
/* جلوگیری از پرش لایه‌ها هنگام لود */
.product-card {
  content-visibility: auto;
  contain-intrinsic-size: 260px 400px;
}
.h-scroll .product-card:nth-child(-n+2),
.products-grid .product-card:nth-child(-n+4) {
  content-visibility: visible;
}
.pd-gallery-main img,
.cb-carousel-slide img {
  background: #f0f0f0;
}
img[loading="lazy"] {
  content-visibility: auto;
}

/* Listing mode banner + sort chips */
.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 8px 0 12px;
}
.listing-toolbar h1 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  margin: 0 0 4px;
  font-weight: 800;
}
.listing-toolbar .count {
  font-size: 13px;
  color: var(--care-muted);
}
.list-mode-banner {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.list-mode-banner a {
  font-weight: 600;
  color: var(--care-primary-dark);
}
.list-mode-sales {
  background: #fff5f6;
  border: 1px solid #f3d0d4;
}
.list-mode-discount {
  background: #f3faf4;
  border: 1px solid #cfe8d4;
}
.sort-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sort-chips::-webkit-scrollbar { display: none; }
.sort-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--care-border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--care-text);
  text-decoration: none;
}
.sort-chip.active {
  background: var(--care-primary);
  border-color: var(--care-primary);
  color: #fff !important;
}


/* ========== Engagement UI ========== */
.eng-top-ship {
  background: #1f1f1f;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 8px 12px;
  letter-spacing: .2px;
}
.eng-top-ship-ok { background: #1a7f37; }

.eng-ship-bar, .eng-routine {
  background: #fff5f6;
  border: 1px solid #f0d0d4;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13px;
}
.eng-ship-track {
  height: 6px;
  background: #eee;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.eng-ship-track span {
  display: block;
  height: 100%;
  background: var(--care-primary);
  will-change: width;
}
.eng-routine-ok { color: #1a7f37; font-weight: 600; }
.product-card__badge-stock {
  top: auto !important;
  bottom: 8px;
  background: #ef6c00 !important;
  font-size: 10px !important;
}
.pd-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--care-muted);
}
.pd-social span {
  background: var(--care-bg);
  padding: 4px 10px;
  border-radius: 999px;
}
.pd-urgency { color: #c62828 !important; font-weight: 700; background: #ffebee !important; }

/* تایمر پیشنهاد ویژه */
.deal-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--care-text);
  margin: 4px 0 12px;
  font-weight: 600;
}
.deal-timer-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fff5f6, #ffe8eb);
  border: 1px solid #f3c8ce;
  border-radius: 12px;
  padding: 6px 10px;
  direction: ltr;
  unicode-bidi: isolate;
}
.deal-timer .dt-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  line-height: 1.15;
}
.deal-timer .dt-unit b {
  font-size: 15px;
  font-weight: 800;
  color: var(--care-primary-dark);
  font-variant-numeric: tabular-nums;
}
.deal-timer .dt-unit i {
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  color: var(--care-muted);
}
.deal-timer .dt-sep {
  font-weight: 700;
  color: var(--care-primary);
  padding-bottom: 10px;
}
.deal-timer.is-ended .deal-timer-text {
  background: #f5f5f5;
  border-color: #ddd;
  color: var(--care-muted);
}

/* مودال چرخونه */
.eng-wheel-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 18, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: engFade .25s ease;
}
.eng-wheel-modal[hidden] { display: none !important; }
@keyframes engFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.eng-wheel-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 18px 20px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  animation: engCardIn .45s cubic-bezier(.2,.9,.25,1.15) both;
}
@keyframes engPop {
  from { transform: translateY(16px) scale(.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes engCardIn {
  0% { transform: translateY(28px) scale(.88) rotate(-2deg); opacity: 0; }
  60% { transform: translateY(-6px) scale(1.02) rotate(0.5deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes engCardOut {
  to { transform: translateY(20px) scale(.9); opacity: 0; }
}
@keyframes engBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.eng-wheel-modal.is-open {
  animation: engBackdropIn .28s ease;
}
.eng-wheel-card.eng-card-in {
  animation: engCardIn .45s cubic-bezier(.2,.9,.25,1.15) both;
}
.eng-wheel-card.eng-card-out {
  animation: engCardOut .28s ease both;
}
.eng-wheel-close {
  position: absolute;
  top: 8px;
  left: 10px;
  border: 0;
  background: #f3f3f3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #555;
}
.eng-wheel-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--care-primary);
  letter-spacing: .5px;
}
.eng-wheel-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}
.eng-wheel-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--care-muted);
  line-height: 1.6;
}
.eng-wheel-stage {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
}
.eng-wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid var(--care-primary-dark);
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
}
.eng-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 0 0 3px #e8c4c8, 0 8px 24px rgba(0,0,0,.12);
  background: conic-gradient(
    #f7b6bc 0deg 60deg,
    #e85a66 60deg 120deg,
    #c92a3a 120deg 180deg,
    #f7b6bc 180deg 240deg,
    #e85a66 240deg 300deg,
    #c92a3a 300deg 360deg
  );
  position: relative;
  will-change: transform;
  transform: translateZ(0);
}
.eng-wheel-disc .seg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 24px;
  margin-top: -12px;
  transform-origin: left center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 18px;
  box-sizing: border-box;
  pointer-events: none;
}
/* مرکز هر قطاع (۶۰ درجه) */
.eng-wheel-disc .s1 { transform: rotate(30deg); }
.eng-wheel-disc .s2 { transform: rotate(90deg); }
.eng-wheel-disc .s3 { transform: rotate(150deg); }
.eng-wheel-disc .s4 { transform: rotate(210deg); }
.eng-wheel-disc .s5 { transform: rotate(270deg); }
.eng-wheel-disc .s6 { transform: rotate(330deg); }

.eng-wheel-btn {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  font-size: 15px;
}
.eng-wheel-result {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}
.eng-win {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  background: #fff5f6;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #f0d0d4;
}
.eng-win-pct {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--care-primary-dark);
}
.eng-win-code code {
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px dashed #e0a0a8;
  direction: ltr;
  display: inline-block;
}
.eng-copy-btn {
  border: 0;
  background: var(--care-primary);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.eng-win small { color: var(--care-muted); font-size: 11px; }

@media (max-width: 400px) {
  .eng-wheel-stage { width: 190px; height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .eng-wheel-disc { transition: none !important; }
  .eng-wheel-modal, .eng-wheel-card { animation: none !important; }
}

.eng-profile-coupon {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff5f6;
  border: 1px solid #f0d0d4;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.eng-profile-coupon code {
  direction: ltr;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px dashed #e0a0a8;
  font-weight: 700;
}
.eng-profile-coupon small {
  width: 100%;
  color: var(--care-muted);
  font-size: 11px;
}
.deal-timer-label {
  font-size: 12px;
  color: var(--care-muted);
  font-weight: 600;
  margin-left: 4px;
}
