.private-store-body {
  font-family: 'Cairo', sans-serif;
  color: var(--store-text, #1f2d28);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--store-primary, #174c3c) 16%, transparent) 0%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--store-bg, #fffaf2) 80%, white 20%) 0%, var(--store-bg, #fffaf2) 100%);
  min-height: 100vh;
}

.private-store-body[data-store-font='tajawal'] {
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

.private-store-body[data-store-font='almarai'] {
  font-family: 'Almarai', 'Cairo', sans-serif;
}

.private-store-body[data-store-font='kufi'],
.private-store-body[data-store-font='noto'] {
  font-family: 'Noto Kufi Arabic', 'Cairo', sans-serif;
}

.private-store-body a {
  text-decoration: none;
}

.private-store-page {
  padding: 28px 0 48px;
}

.private-store-navbar {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--store-primary, #174c3c) 92%, black 8%), color-mix(in srgb, var(--store-secondary, #2d6a56) 88%, var(--store-primary, #174c3c) 12%));
  border-bottom: 1px solid color-mix(in srgb, var(--store-accent, #d2a964) 24%, transparent);
  box-shadow: 0 18px 34px rgba(13, 33, 26, 0.14);
}

.private-store-nav-shell {
  gap: 18px;
}

.private-store-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: #fffef7;
}

.private-store-brand img,
.private-store-brand-fallback {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(9, 18, 15, 0.2);
}

.private-store-brand-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.private-navbar-toggler {
  border-color: rgba(255, 255, 255, 0.24);
}

.private-navbar-toggler .navbar-toggler-icon {
  filter: invert(1);
}

.private-nav-links {
  gap: 4px;
}

.private-nav-links .nav-link,
.private-nav-links .dropdown-toggle {
  color: rgba(255, 250, 239, 0.84);
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 999px;
}

.private-nav-links .nav-link:hover,
.private-nav-links .nav-link.is-active,
.private-nav-links .dropdown-toggle:hover {
  color: #fffef8;
  background: rgba(255, 255, 255, 0.12);
}

.private-dropdown-menu {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(11, 29, 22, 0.14);
  padding: 10px;
}

.private-dropdown-menu .dropdown-item {
  border-radius: 12px;
  padding: 10px 12px;
}

.private-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.private-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fffef8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.private-nav-pill.is-cart {
  background: color-mix(in srgb, var(--store-accent, #d2a964) 82%, white 18%);
  color: color-mix(in srgb, var(--store-primary, #174c3c) 92%, black 8%);
  border-color: transparent;
}

.private-cart-count {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
}

.private-shell,
.private-section-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}

.private-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
  gap: 22px;
}

.private-hero-carousel,
.private-side-card,
.private-stat-card,
.private-section-shell,
.private-category-card,
.private-product-tile,
.private-filter-card,
.private-empty-state {
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--store-primary, #174c3c) 10%, transparent);
  box-shadow: 0 24px 56px rgba(14, 34, 27, 0.08);
}

.private-hero-carousel {
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--store-primary, #174c3c) 92%, black 8%), color-mix(in srgb, var(--store-secondary, #2d6a56) 82%, var(--store-primary, #174c3c) 18%));
  min-height: 540px;
}

.private-hero-slide {
  min-height: 540px;
  background-position: center;
  background-size: cover;
}

.private-hero-overlay {
  min-height: 540px;
  display: flex;
  align-items: end;
  padding: 34px;
  background: linear-gradient(180deg, rgba(14, 38, 30, 0.08) 0%, rgba(11, 30, 24, 0.78) 100%);
}

.private-hero-copy {
  width: min(100%, 620px);
  padding: 28px;
  border-radius: 26px;
  color: #fffef8;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.16), rgba(255, 249, 238, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.private-hero-copy h1 {
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(2rem, 3.8vw, 4rem);
  margin-bottom: 12px;
}

.private-hero-copy p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.private-hero-actions,
.private-footer-actions,
.private-chip-row,
.private-category-card-footer,
.private-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.private-btn-primary,
.private-btn-outline,
.private-btn-ghost,
.private-btn-soft,
.private-qty-btn,
.private-filter-submit {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.private-btn-primary,
.private-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--store-accent, #d2a964), color-mix(in srgb, var(--store-accent, #d2a964) 72%, white 28%));
  color: color-mix(in srgb, var(--store-primary, #174c3c) 90%, black 10%);
  box-shadow: 0 16px 28px color-mix(in srgb, var(--store-accent, #d2a964) 34%, transparent);
}

.private-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fffef8;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.private-btn-ghost,
.private-btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  flex: 1 1 0;
}

.private-btn-ghost {
  background: rgba(255, 255, 255, 0.86);
  color: var(--store-primary, #174c3c);
}

.private-btn-soft {
  background: color-mix(in srgb, var(--store-primary, #174c3c) 8%, white 92%);
  color: var(--store-primary, #174c3c);
}

.private-btn-primary:hover,
.private-btn-outline:hover,
.private-btn-ghost:hover,
.private-btn-soft:hover,
.private-qty-btn:hover,
.private-filter-submit:hover {
  transform: translateY(-2px);
}

.private-side-stack,
.private-stats-grid {
  display: grid;
  gap: 18px;
}

.private-side-card,
.private-stat-card,
.private-filter-card,
.private-section-shell,
.private-category-card,
.private-empty-state {
  background: rgba(255, 252, 247, 0.88);
}

.private-side-card {
  padding: 24px;
}

.private-side-card h3,
.private-section-heading h2,
.private-filter-card h1 {
  font-family: 'El Messiri', 'Cairo', sans-serif;
  color: color-mix(in srgb, var(--store-primary, #174c3c) 92%, black 8%);
}

.private-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-primary, #174c3c) 8%, white 92%);
  color: var(--store-primary, #174c3c);
  font-weight: 800;
}

.private-side-card p,
.private-filter-card p,
.private-product-copy,
.private-category-card p {
  color: color-mix(in srgb, var(--store-text, #1f2d28) 70%, white 30%);
  line-height: 1.85;
}

.private-chip-row a {
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-primary, #174c3c) 7%, white 93%);
  color: var(--store-primary, #174c3c);
  font-weight: 700;
}

.private-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.private-stat-card {
  padding: 24px;
}

.private-stat-card strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  color: var(--store-primary, #174c3c);
  font-weight: 900;
}

.private-stat-card span {
  color: color-mix(in srgb, var(--store-text, #1f2d28) 68%, white 32%);
  font-weight: 700;
}

.private-section {
  margin-top: 28px;
}

.private-section-shell {
  padding: 28px;
}

.private-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.private-section-heading small {
  display: inline-block;
  margin-bottom: 6px;
  color: color-mix(in srgb, var(--store-accent, #d2a964) 88%, var(--store-primary, #174c3c) 12%);
  font-weight: 800;
}

.private-section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.private-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--store-primary, #174c3c);
  background: color-mix(in srgb, var(--store-primary, #174c3c) 8%, white 92%);
  font-weight: 800;
}

.private-category-grid,
.private-product-grid {
  display: grid;
  gap: 18px;
}

.private-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.private-category-card {
  overflow: hidden;
}

.private-category-card img,
.private-category-fallback {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.private-category-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--store-primary, #174c3c) 14%, white 86%), color-mix(in srgb, var(--store-accent, #d2a964) 16%, white 84%));
  color: var(--store-primary, #174c3c);
  font-size: 2rem;
}

.private-category-body {
  padding: 18px;
}

.private-category-body h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--store-primary, #174c3c);
}

.private-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.private-product-tile {
  background: rgba(255, 252, 247, 0.94);
  padding: 10px;
}

.private-product-thumb {
  position: relative;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--store-primary, #174c3c) 7%, white 93%), color-mix(in srgb, var(--store-accent, #d2a964) 12%, white 88%));
}

.private-product-thumb-link {
  display: block;
  height: 100%;
}

.private-product-thumb-link img,
.private-product-thumb-empty {
  width: 100%;
  height: 100%;
}

.private-product-thumb-link img {
  object-fit: contain;
  background: #f8f6f1;
  padding: 14px;
}

.private-product-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--store-primary, #174c3c) 42%, white 58%);
  font-size: 2.2rem;
}

.private-product-badge,
.private-product-quick-link,
.private-rating-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.private-product-badge {
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--store-accent, #d2a964), color-mix(in srgb, var(--store-accent, #d2a964) 76%, white 24%));
  color: color-mix(in srgb, var(--store-primary, #174c3c) 92%, black 8%);
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(17, 41, 32, 0.12);
}

.private-product-quick-link {
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--store-primary, #174c3c);
  box-shadow: 0 12px 22px rgba(17, 41, 32, 0.12);
}

.private-product-meta {
  padding: 18px 10px 8px;
}

.private-product-category {
  color: color-mix(in srgb, var(--store-accent, #d2a964) 84%, var(--store-primary, #174c3c) 16%);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.private-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 58px;
  color: var(--store-primary, #174c3c);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.7;
}

.private-product-copy {
  min-height: 62px;
  margin: 10px 0 12px;
  font-size: 0.94rem;
}

.private-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--store-accent, #d2a964) 84%, var(--store-primary, #174c3c) 16%);
}

.private-product-rating span {
  color: color-mix(in srgb, var(--store-text, #1f2d28) 62%, white 38%);
  font-size: 0.9rem;
}

.private-rating-pill {
  position: static;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-primary, #174c3c) 10%, white 90%);
  color: var(--store-primary, #174c3c);
  font-size: 0.82rem;
  font-weight: 800;
}

.private-product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.private-price-now {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--store-primary, #174c3c);
}

.private-price-before {
  color: color-mix(in srgb, var(--store-text, #1f2d28) 45%, white 55%);
  text-decoration: line-through;
}

.private-qty-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.private-qty-btn {
  background: color-mix(in srgb, var(--store-primary, #174c3c) 8%, white 92%);
  color: var(--store-primary, #174c3c);
  border: 1px solid color-mix(in srgb, var(--store-primary, #174c3c) 10%, transparent);
}

.private-qty-btn.hot {
  background: linear-gradient(135deg, var(--store-primary, #174c3c), color-mix(in srgb, var(--store-secondary, #2d6a56) 84%, var(--store-primary, #174c3c) 16%));
  color: #fffef8;
  box-shadow: 0 14px 24px color-mix(in srgb, var(--store-primary, #174c3c) 18%, transparent);
}

.private-filter-card {
  padding: 28px;
  margin-bottom: 22px;
}

.private-filter-card h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.private-filter-card .form-label {
  font-weight: 800;
  color: var(--store-primary, #174c3c);
}

.private-filter-card .form-control,
.private-filter-card .form-select {
  min-height: 48px;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--store-primary, #174c3c) 12%, transparent);
}

.private-empty-state {
  padding: 56px 24px;
  text-align: center;
}

.private-empty-state i {
  font-size: 3rem;
  color: color-mix(in srgb, var(--store-primary, #174c3c) 36%, white 64%);
  margin-bottom: 16px;
}

.private-store-footer {
  margin-top: 28px;
  padding: 36px 0 40px;
  color: #fffef7;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--store-primary, #174c3c) 94%, black 6%), color-mix(in srgb, var(--store-secondary, #2d6a56) 88%, var(--store-primary, #174c3c) 12%));
}

.private-footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.private-footer-brand img {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
}

.private-store-footer h3,
.private-store-footer h4 {
  font-family: 'El Messiri', 'Cairo', sans-serif;
  margin-bottom: 10px;
}

.private-store-footer p {
  margin-bottom: 0;
  line-height: 1.8;
  color: rgba(255, 250, 239, 0.8);
}

.private-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.private-footer-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 250, 239, 0.82);
}

.private-footer-actions a {
  color: #fffef7;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.private-toast-stack {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 1085;
  pointer-events: none;
}

.private-toast {
  max-width: 420px;
  margin-inline-start: auto;
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 18px 34px rgba(10, 24, 18, 0.18);
}

.private-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.private-toast.is-success {
  background: linear-gradient(135deg, var(--store-primary, #174c3c), var(--store-secondary, #2d6a56));
}

.private-toast.is-danger {
  background: linear-gradient(135deg, #a63434, #7e2121);
}

@media (max-width: 1199px) {
  .private-hero-grid {
    grid-template-columns: 1fr;
  }

  .private-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .private-store-page {
    padding-top: 18px;
  }

  .private-shell,
  .private-section-shell {
    width: min(100% - 20px, 1360px);
  }

  .private-hero-carousel,
  .private-hero-slide,
  .private-hero-overlay {
    min-height: 420px;
  }

  .private-hero-overlay {
    padding: 18px;
  }

  .private-hero-copy {
    padding: 20px;
  }

  .private-stats-grid {
    grid-template-columns: 1fr;
  }

  .private-section-shell,
  .private-filter-card {
    padding: 20px;
  }

  .private-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .private-qty-actions {
    grid-template-columns: 1fr;
  }

  .private-nav-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .private-footer-brand {
    flex-direction: column;
  }
}
