.store-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(14px);
}

.store-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.store-header-inner .brand-mark {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
}

.store-header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-header-nav a {
  color: #f2ede3;
  text-decoration: none;
  font-size: 14px;
}

.store-header-nav a:hover {
  color: var(--gold);
}

.cart-badge {
  position: relative;
  color: var(--gold) !important;
  font-weight: 700;
}

.cart-badge .count {
  position: absolute;
  top: -10px;
  right: -14px;
  background: var(--gold);
  color: #1a1508;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* فرم جستجو در هدر */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-form i {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}

.header-search-form input {
  width: 180px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  padding: 7px 32px 7px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  transition: width 0.25s, border-color 0.2s;
}

.header-search-form input::placeholder {
  color: var(--text-muted);
}

.header-search-form input:focus {
  outline: none;
  border-color: var(--gold);
  width: 220px;
}

@media (max-width: 991px) {
  .header-search-form input {
    width: 130px;
  }
  .header-search-form input:focus {
    width: 150px;
  }
}

.store-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.store-title {
  color: #fff;
  font-size: 24px;
  margin: 0 0 6px;
}

.store-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ==========================================================
   هیرو فروشگاه (بنر بالای صفحه‌ی لیست محصولات)
   ========================================================== */
.store-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 46px 40px;
  margin-bottom: 34px;
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.12), transparent 45%),
    linear-gradient(135deg, #0d0d0d, #151310 60%, #1a1508);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.store-hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.store-hero h1 {
  position: relative;
  color: #fff;
  font-size: 30px;
  margin: 0 0 10px;
  max-width: 560px;
  line-height: 1.5;
}

.store-hero p {
  position: relative;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 520px;
  margin: 0 0 22px;
  line-height: 2;
}

.store-hero-actions {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* نوار اعتماد (ارسال سریع / ضمانت اصالت / پرداخت امن / پشتیبانی) */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 12px;
  padding: 13px 14px;
}

.trust-item i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-size: 14px;
}

.trust-item span {
  display: block;
  font-size: 12.5px;
  color: #f2ede3;
  line-height: 1.7;
}

.trust-item small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .store-hero { padding: 32px 22px; }
  .store-hero h1 { font-size: 24px; }
}

/* سرتیتر بخش‌ها (مثلاً «همه محصولات») */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-heading h2 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

.section-heading .count-pill {
  font-size: 12px;
  color: var(--text-muted);
}

/* مسیر ناوبری (breadcrumb) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--gold-light);
}

/* دسته‌بندی‌ها */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.category-chips a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f2ede3;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.category-chips a:hover,
.category-chips a.active {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  border-color: transparent;
  font-weight: 700;
}

/* گرید محصولات */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(212, 175, 55, 0.4);
}

.product-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #101010 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.06);
}

.product-card .thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.product-card .ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(226, 96, 96, 0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card .cat-label {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card h3 {
  margin: 0;
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card .price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card .price {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 15px;
}

.product-card .stock-badge {
  font-size: 11px;
  color: var(--error);
}

.product-card .quick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.product-card .quick-add:hover {
  transform: scale(1.08);
}

.product-card .quick-add.disabled {
  background: #333;
  color: var(--text-muted);
  pointer-events: none;
}

.btn-store {
  display: inline-block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
}

.btn-store:disabled,
.btn-store.disabled {
  background: #333;
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-outline-store {
  display: inline-block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-decoration: none;
}

/* صفحه‌ی جزئیات محصول */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-detail .thumb {
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

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

.product-detail .price-big {
  font-size: 28px;
  color: var(--gold-light);
  font-weight: 800;
  margin: 14px 0;
}

.product-detail .desc {
  color: #cfc9bd;
  line-height: 2;
  margin-bottom: 24px;
}

.qty-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qty-form input[type="number"] {
  width: 80px;
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  text-align: center;
}

/* سبد خرید */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.cart-table th,
.cart-table td {
  padding: 14px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.cart-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}

.cart-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-cell .name {
  color: #f2ede3;
  font-size: 13.5px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-total-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  font-size: 18px;
  color: #fff;
  margin: 20px 0;
}

.cart-total-row strong {
  color: var(--gold-light);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* فرم تسویه‌حساب */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.checkout-form .form-group {
  margin-bottom: 16px;
}

.checkout-form label {
  display: block;
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 11px 13px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.order-summary {
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 22px;
  height: fit-content;
}

.order-summary .line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-summary .line.discount-line {
  color: #8be6b8;
}

.order-summary .line.discount-line span:last-child {
  color: #8be6b8;
  font-weight: 700;
}

.order-summary .line.total-line {
  border-bottom: none;
  font-weight: 700;
  color: var(--gold-light);
  font-size: 16px;
  padding-top: 14px;
}

/* ==========================================================
   جعبه‌ی اعمال کد تخفیف
   ========================================================== */
.coupon-box {
  margin: 18px 0 22px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.04);
}

.coupon-box .coupon-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.coupon-form-row {
  display: flex;
  gap: 8px;
}

.coupon-form-row input[type="text"] {
  flex: 1;
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 10px 13px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
}

.coupon-form-row input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
}

.coupon-form-row button {
  white-space: nowrap;
  padding: 0 18px;
}

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(76, 175, 125, 0.1);
  border: 1px solid rgba(76, 175, 125, 0.35);
}

.coupon-applied .info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8be6b8;
  font-size: 13px;
}

.coupon-applied .info strong {
  color: #fff;
  letter-spacing: 1px;
}

.coupon-applied button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.coupon-applied button:hover {
  color: var(--error);
}

/* وضعیت سفارش */
.status-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pending_payment { background: rgba(212, 175, 55, 0.15); color: var(--gold-light); }
.status-paid { background: rgba(76, 175, 125, 0.15); color: #8be6b8; }
.status-failed, .status-canceled { background: rgba(226, 96, 96, 0.15); color: #ff9c9c; }
.status-shipped, .status-delivered { background: rgba(120, 170, 230, 0.15); color: #a9c9f5; }

@media (max-width: 800px) {
  .product-detail,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
