@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

.smm-storefront {
  --smm-accent: #fb7185;
  --smm-accent-strong: #e11d48;
  --smm-focus: #2563eb;
  --smm-surface: color-mix(in srgb, currentColor 7%, transparent);
  --smm-border: color-mix(in srgb, currentColor 16%, transparent);
  --smm-chip: rgba(225, 29, 72, 0.14);
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

.smm-storefront .smm-hero {
  padding: 20px 0 4px;
}

.smm-storefront .smm-hero h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.smm-storefront .smm-hero p {
  max-width: 46rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.smm-storefront .smm-count {
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.9;
}

.smm-storefront .smm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  margin: 16px 0 12px;
}

.smm-storefront .smm-search {
  display: flex;
  gap: 8px;
  flex: 1 1 280px;
}

.smm-storefront .smm-sort {
  flex: 0 1 220px;
}

.smm-storefront .smm-search input,
.smm-storefront .smm-field,
.smm-storefront .smm-sort select,
.smm-storefront .smm-category-filter {
  min-height: 48px;
}

.smm-storefront .smm-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.smm-storefront .smm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--smm-border);
  background: var(--smm-surface);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.smm-storefront .smm-chip span {
  opacity: 0.75;
  font-weight: 500;
}

.smm-storefront .smm-chip:hover,
.smm-storefront .smm-chip.is-active {
  background: var(--smm-chip);
  border-color: var(--smm-accent-strong);
  color: var(--smm-accent);
}

.smm-storefront .smm-sidebar {
  position: sticky;
  top: 88px;
}

.smm-storefront .smm-category-filter {
  margin-bottom: 10px;
}

.smm-storefront .smm-category-list {
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-inline-end: 4px;
}

.smm-storefront .category-link,
.smm-storefront .smm-card,
.smm-storefront .smm-qty-btn,
.smm-storefront .smm-submit,
.smm-storefront .smm-chip {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.smm-storefront .smm-card:hover,
.smm-storefront .category-link:hover {
  transform: translateY(-1px);
}

.smm-storefront .smm-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--smm-border);
  background: var(--smm-surface);
  color: inherit;
  text-decoration: none;
}

.smm-storefront .smm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.smm-storefront .smm-type {
  font-size: 0.75rem;
  opacity: 0.75;
}

.smm-storefront .smm-card:focus-visible,
.smm-storefront .smm-qty-btn:focus-visible,
.smm-storefront .smm-submit:focus-visible,
.smm-storefront .smm-chip:focus-visible,
.smm-storefront a:focus-visible,
.smm-storefront button:focus-visible,
.smm-storefront input:focus-visible,
.smm-storefront select:focus-visible,
.smm-storefront textarea:focus-visible {
  outline: 2px solid var(--smm-focus);
  outline-offset: 2px;
}

.smm-storefront .smm-platform {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 29, 72, 0.16);
  color: var(--smm-accent);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.smm-storefront .smm-card h3 {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.smm-storefront .smm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.smm-storefront .smm-price {
  margin-top: auto;
  color: var(--smm-accent);
  font-weight: 700;
}

.smm-storefront .smm-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.smm-storefront .smm-qty-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--smm-border);
  background: transparent;
  color: inherit;
}

.smm-storefront .smm-qty input {
  width: 100%;
  min-height: 48px;
  text-align: center;
}

.smm-storefront .smm-submit {
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--smm-accent-strong);
  color: #fff;
  font-weight: 600;
}

.smm-storefront .smm-submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.smm-storefront .smm-note {
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(37, 99, 235, 0.12);
}

.smm-storefront .smm-error {
  color: #b91c1c;
}

@media (max-width: 991px) {
  .smm-storefront .smm-sidebar {
    position: static;
  }

  .smm-storefront .smm-category-list {
    max-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smm-storefront * {
    transition: none !important;
  }
}

html.ltr .smm-storefront {
  font-family: inherit;
}

.smm-storefront .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.smm-order-page {
  padding: 16px 0 48px;
}

.smm-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141824;
  color: #f8fafc;
}

.smm-panel-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.smm-panel-copy {
  opacity: 0.82;
  margin-bottom: 16px;
}

.smm-panel-copy .smm-count {
  display: inline-block;
  margin-inline-start: 8px;
}

.smm-order-page .smm-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.smm-order-page .smm-chip {
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 8px 6px;
  border-radius: 14px;
  text-align: center;
  gap: 6px;
}

.smm-order-page .smm-chip i {
  font-size: 1.2rem;
}

.smm-order-page .smm-chip span {
  font-size: 0.75rem;
  line-height: 1.2;
  opacity: 0.9;
}

.smm-live-search {
  position: relative;
  margin-bottom: 16px;
}

.smm-live-search > i {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}

.smm-live-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 42px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
}

html.rtl .smm-live-search input {
  padding: 10px 14px 10px 42px;
}

.smm-live-results {
  position: absolute;
  z-index: 30;
  inset-inline: 0;
  top: calc(100% + 6px);
  max-height: min(50vh, 320px);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1b2233;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.smm-live-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
}

.smm-live-item:hover,
.smm-live-item:focus {
  background: rgba(225, 29, 72, 0.16);
}

.smm-live-empty {
  margin: 0;
  padding: 12px;
  opacity: 0.7;
}

.smm-order-form .form-label {
  font-weight: 600;
  margin-bottom: 6px;
}

.smm-order-form .smm-field,
.smm-order-form textarea.form-control {
  min-height: 48px;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
}

.smm-order-form textarea.form-control {
  min-height: 120px;
}

.smm-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.75;
}

.smm-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 16px;
  font-size: 1.05rem;
}

.smm-total strong {
  color: var(--smm-accent);
}

.smm-select2-dropdown,
.select2-container--default .smm-select2-dropdown {
  background: #fff;
  color: #0f172a;
}

.smm-order-page .select2-container {
  width: 100% !important;
}

.smm-order-page .select2-container .select2-selection--single {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  display: flex;
  align-items: center;
}

.smm-order-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a;
  line-height: 48px;
  padding-inline: 12px;
}

.smm-order-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  inset-inline-end: 6px;
}

.smm-order-page .select2-search--dropdown .select2-search__field {
  min-height: 44px;
  border-radius: 8px;
}

.storefront-home {
  padding: 24px 0 56px;
}

.storefront-home .storefront-hero {
  padding: 12px 0 28px;
}

.storefront-home .storefront-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.storefront-home .storefront-hero p {
  max-width: 40rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.storefront-home .storefront-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.storefront-home .storefront-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}

.storefront-home .storefront-actions .is-primary {
  background: #e11d48;
  color: #fff;
}

.storefront-home .storefront-actions .is-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
}

.storefront-home .storefront-section {
  margin-top: 36px;
}

.storefront-home .storefront-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.storefront-home .smm-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.storefront-home .smm-chip {
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  border-radius: 14px;
  text-align: center;
}

.storefront-home .smm-card h3 {
  -webkit-line-clamp: 2;
}

@media (max-width: 575px) {
  .smm-order-page .smm-platforms,
  .storefront-home .smm-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smm-panel {
    padding: 16px 12px 20px;
    border-radius: 16px;
  }

  .smm-order-page .smm-chip,
  .storefront-home .smm-chip {
    min-height: 68px;
  }
}
