/* Mobishop – UX/UI e përmirësuar për shitje/blerje pjesësh */

:root {
  --tw-bg-page: #f0f2f5;
  --tw-bg-surface: #ffffff;
  --tw-bg-card: #ffffff;
  --tw-bg-card-hover: #fafafa;
  --tw-border: #e8eaed;
  --tw-border-light: #dadce0;
  --tw-orange: #e85d04;
  --tw-orange-hover: #d54d03;
  --tw-orange-glow: rgba(232, 93, 4, 0.35);
  --tw-accent-subtle: rgba(232, 93, 4, 0.12);
  --tw-success: #0d9488;
  --tw-success-bg: rgba(13, 148, 136, 0.12);
  --tw-text-primary: #1a1a1a;
  --tw-text-muted: #4b5563;
  --tw-text-subtle: #6b7280;
  --tw-radius: 14px;
  --tw-radius-lg: 18px;
  --tw-shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --tw-shadow-card-hover: 0 8px 24px rgba(0,0,0,0.08);
  --tw-shadow-soft: 0 4px 20px -4px rgba(0,0,0,0.1);
  --tw-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tw-duration-fast: 0.15s;
  --tw-duration-normal: 0.2s;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

body {
  -webkit-tap-highlight-color: transparent;
}
body.modal-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* ========== Intro banner ========== */
.intro-banner {
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
}
.intro-banner-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.intro-banner-title::before {
  content: "📱";
  font-size: 1.25rem;
}
.intro-banner-list {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #5f6368;
}
.intro-banner--collapsed .intro-banner-inner {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--tw-duration-normal) var(--tw-ease), padding var(--tw-duration-normal) var(--tw-ease), opacity var(--tw-duration-fast) ease;
}
.intro-banner--collapsed .intro-banner-toggle {
  position: static;
  width: 100%;
  height: auto;
  padding: 0.5rem 1rem;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border-radius: 0;
  border: none;
}
.intro-banner--collapsed .intro-banner-toggle:hover {
  background: var(--tw-bg-page);
}
.intro-banner--collapsed .intro-banner-toggle-label {
  display: inline;
  font-size: 0.875rem;
  font-weight: 500;
}
.intro-banner--collapsed .intro-banner-toggle-icon--down {
  display: none;
}
.intro-banner--collapsed .intro-banner-toggle-icon--up {
  display: block;
  font-size: 0.75rem;
}

/* ========== Header ========== */
.site-logo-img {
  max-height: 2.5rem;
  max-width: 160px;
  object-fit: contain;
}
.header {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 var(--tw-border);
}
.header-title a {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}
.header-subtitle {
  font-size: 0.75rem;
  color: #5f6368;
  font-weight: 500;
  margin-top: 0.125rem;
}
.avatar {
  background: var(--tw-accent-subtle) !important;
  border-color: rgba(232, 93, 4, 0.2) !important;
}

/* ========== Tabs (kategoritë) ========== */
.tabs {
  padding-bottom: 0.5rem;
}
.tab {
  font-weight: 500;
  color: var(--tw-text-muted);
  background: var(--tw-bg-surface);
  border: 1px solid var(--tw-border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  transition: color var(--tw-duration-fast) ease, background var(--tw-duration-fast) ease, border-color var(--tw-duration-fast) ease, box-shadow var(--tw-duration-fast) ease;
}
.tab:hover {
  color: var(--tw-text-primary);
  background: var(--tw-bg-card-hover);
  border-color: var(--tw-border-light);
}
.tab.active {
  color: #fff !important;
  background: var(--tw-orange);
  border-color: var(--tw-orange);
  box-shadow: 0 2px 12px var(--tw-orange-glow);
}
.tab--home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
}
.tab--home .tab-icon--home {
  display: block;
}
.tab.active .tab-icon--home {
  stroke: currentColor;
}
.tab-dropdown-menu--fixed {
  position: fixed;
  z-index: 1000;
  margin-top: 0.375rem;
}
.tab-dropdown-option.active {
  background: var(--tw-accent-subtle);
  color: var(--tw-orange);
  font-weight: 600;
}

/* Desktop: të gjitha kategoritë si taba; telefon: vetëm dy + dropdown */
.tab--desktop-only {
  display: none;
}
.tab-dropdown--mobile-only {
  display: flex;
}
@media (min-width: 768px) {
  .tab--desktop-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tab-dropdown--mobile-only {
    display: none;
  }
}

/* ========== Search & filter ========== */
.search-wrap {
  position: relative;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-input-wrap::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
.search-wrap .search-input {
  padding-left: 2.75rem;
  border-radius: var(--tw-radius);
  background: var(--tw-bg-surface);
  border: 1px solid var(--tw-border);
  font-size: 0.9375rem;
  transition: box-shadow var(--tw-duration-fast) ease, border-color var(--tw-duration-fast) ease;
}
.search-wrap .search-input:focus {
  border-color: var(--tw-orange);
  box-shadow: 0 0 0 3px var(--tw-accent-subtle);
}
.btn-model-toggle {
  border-radius: var(--tw-radius);
  border: 1px solid var(--tw-border);
  background: var(--tw-bg-surface);
  font-weight: 500;
  color: #5f6368;
  transition: color var(--tw-duration-fast) ease, border-color var(--tw-duration-fast) ease, background var(--tw-duration-fast) ease;
}
.btn-model-toggle:hover {
  color: var(--tw-orange);
  border-color: var(--tw-orange);
  background: var(--tw-accent-subtle);
}
.model-filter-dropdown {
  border-radius: var(--tw-radius);
  box-shadow: var(--tw-shadow-soft);
  border: 1px solid var(--tw-border);
}
.model-filter-option.active {
  background: var(--tw-accent-subtle);
  color: var(--tw-orange);
  font-weight: 600;
}

/* ========== Section title ========== */
.section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

/* ========== Model group (accordion) ========== */
.model-group-header {
  border-radius: var(--tw-radius);
  background: var(--tw-bg-surface);
  border: 1px solid var(--tw-border);
  font-weight: 600;
  color: #1a1a1a;
  transition: background var(--tw-duration-fast) ease, border-color var(--tw-duration-fast) ease;
}
.model-group-header:hover {
  background: var(--tw-bg-card-hover);
  border-color: var(--tw-border-light);
}
.model-group-count {
  font-size: 0.75rem;
  color: #5f6368;
  font-weight: 500;
}
.model-group--open .model-group-chevron {
  transform: rotate(180deg);
}
.model-group-body.hidden {
  display: none !important;
}
.model-group--open .model-group-body {
  display: flex !important;
}
@media (min-width: 768px) {
  .model-group--open .model-group-body {
    display: grid !important;
  }
}

/* ========== Listing cards – teksti anash fotos (një rresht, foto majtas) ========== */
.listing-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
  animation: cardFadeIn 0.22s var(--tw-ease) backwards;
  transition: transform var(--tw-duration-fast) var(--tw-ease), box-shadow var(--tw-duration-fast) var(--tw-ease), border-color var(--tw-duration-fast) ease;
}
.listing-card:hover {
  transform: translateY(-2px);
}
.listing-card:active {
  transform: translateY(0);
}
.listing-card .listing-left {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  min-width: 5rem;
  min-height: 5rem;
}
@media (max-width: 767px) {
  .listing-card .listing-left {
    width: 7rem;
    height: 7rem;
    min-width: 7rem;
    min-height: 7rem;
  }
}
.listing-card .listing-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.listing-card:nth-child(1) { animation-delay: 12ms; }
.listing-card:nth-child(2) { animation-delay: 28ms; }
.listing-card:nth-child(3) { animation-delay: 44ms; }
.listing-card:nth-child(n+4) { animation-delay: 56ms; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.listing-badge-new {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--tw-orange);
  color: #fff;
  border-radius: 6px;
  vertical-align: middle;
}
.listing-delete:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.15);
}
.btn-contact-listing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tw-orange);
  background: var(--tw-accent-subtle);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius);
  transition: background var(--tw-duration-fast) ease, color var(--tw-duration-fast) ease, border-color var(--tw-duration-fast) ease;
}
.btn-contact-listing:hover {
  background: var(--tw-orange);
  color: #fff;
  border-color: var(--tw-orange);
}

/* ========== Empty state ========== */
.listings-empty {
  text-align: center;
  padding: 2.5rem 1rem !important;
  font-size: 0.9375rem;
  color: #5f6368;
  background: var(--tw-bg-surface);
  border-radius: var(--tw-radius-lg);
  border: 1px dashed var(--tw-border);
}
.listings-search-no-results {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9375rem;
  color: #5f6368;
}

/* ========== FAB – Publiko ========== */
.fab {
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  gap: 0.5rem;
  background: var(--tw-orange);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--tw-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tw-duration-fast) var(--tw-ease), box-shadow var(--tw-duration-fast) var(--tw-ease);
}
.fab:active {
  transform: scale(0.97);
}
.fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px var(--tw-orange-glow);
}
.fab-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.fab-text {
  display: inline;
  font-weight: 600;
  font-size: 0.9375rem;
}
@media (max-width: 767px) {
  .fab-icon {
    display: none;
  }
}
@media (min-width: 768px) {
  .fab {
    padding: 0.75rem 1.25rem;
  }
  .fab-icon {
    display: block;
  }
}

/* ========== Upload photo (thumbnail) ========== */
.upload-photo-wrap {
  position: relative;
}
.upload-photo-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.upload-photo-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  background: var(--tw-bg-page);
  border: 2px dashed var(--tw-border);
  border-radius: var(--tw-radius);
  cursor: pointer;
  transition: border-color var(--tw-duration-fast) ease, background var(--tw-duration-fast) ease;
  position: relative;
}
.upload-photo-zone:hover {
  border-color: var(--tw-orange);
  background: var(--tw-accent-subtle);
}
.upload-photo-zone:focus {
  outline: none;
  border-color: var(--tw-orange);
  box-shadow: 0 0 0 3px var(--tw-accent-subtle);
}
.upload-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--tw-text-muted);
  font-size: 0.875rem;
}
.upload-photo-icon {
  font-size: 2rem;
  opacity: 0.8;
}
.upload-photo-zone.has-file .upload-photo-placeholder {
  display: none;
}
.upload-photo-thumbnail {
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.upload-photo-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 140px;
}
.upload-photo-zone.has-file .upload-photo-thumbnail {
  display: block !important;
}
.upload-photo-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--tw-duration-fast) ease;
}
.upload-photo-remove:hover {
  background: rgba(0,0,0,0.8);
}

/* ========== Modals ========== */
.modal-overlay {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] {
  display: none;
}
.modal-overlay:not([hidden]) {
  animation: overlayFadeIn var(--tw-duration-fast) ease-out;
}
.modal-overlay:not([hidden]) .modal {
  animation: modalScaleIn var(--tw-duration-normal) var(--tw-ease);
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal {
  border-radius: var(--tw-radius-lg);
  border: 1px solid var(--tw-border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
}
.modal-header {
  border-bottom: 1px solid var(--tw-border);
  padding: 1rem 1.25rem;
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tw-text-primary) !important;
}
.modal .label {
  color: var(--tw-text-muted) !important;
}
.btn-icon.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #5f6368;
  font-size: 1.5rem;
  line-height: 1;
  transition: background var(--tw-duration-fast) ease, color var(--tw-duration-fast) ease;
}
.btn-icon.modal-close:hover {
  background: var(--tw-bg-page);
  color: #1a1a1a;
}
/* Form inputs in modals */
.modal .input {
  border-radius: 10px;
  border: 1px solid var(--tw-border);
  font-size: 0.9375rem;
  transition: border-color var(--tw-duration-fast) ease, box-shadow var(--tw-duration-fast) ease;
}
.modal .input:focus {
  border-color: var(--tw-orange);
  box-shadow: 0 0 0 3px var(--tw-accent-subtle);
  outline: none;
}
.modal .label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5f6368;
  margin-bottom: 0.25rem;
}
.modal .btn-primary {
  background: var(--tw-orange);
  color: #fff;
  border: none;
  border-radius: var(--tw-radius);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: background var(--tw-duration-fast) ease, transform 0.1s ease;
}
.modal .btn-primary:hover {
  background: var(--tw-orange-hover);
}
.modal .btn-primary:active {
  transform: scale(0.98);
}

/* Cart modal – compact */
.modal--cart {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal--cart::-webkit-scrollbar {
  width: 5px;
}
.modal--cart::-webkit-scrollbar-track {
  background: var(--tw-bg-page);
  border-radius: 3px;
}
.modal--cart::-webkit-scrollbar-thumb {
  background: var(--tw-border);
  border-radius: 3px;
}
.modal--cart::-webkit-scrollbar-thumb:hover {
  background: var(--tw-text-subtle);
}
.modal--cart .cart-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.625rem 1rem 0.5rem;
  border-bottom: 1px solid var(--tw-border);
  gap: 0.375rem;
}
.modal--cart .cart-modal-title-wrap {
  min-width: 0;
}
.modal--cart .cart-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tw-text-primary);
  margin: 0 0 0.0625rem 0;
}
.modal--cart .cart-modal-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--tw-text-muted);
}
.modal--cart .cart-modal-body {
  padding: 0.625rem 1rem 0.75rem;
}
.modal--cart .cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}
.cart-item {
  background: var(--tw-bg-page);
  border: 1px solid var(--tw-border);
  border-radius: 0.5rem;
  transition: border-color var(--tw-duration-fast) ease, box-shadow var(--tw-duration-fast) ease;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.cart-item:hover {
  border-color: var(--tw-border-light);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.cart-item .cart-item-remove {
  cursor: pointer;
}
.cart-item-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  min-height: 2.75rem;
  position: relative;
}
.cart-item-img,
.cart-item-img-placeholder {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  object-fit: cover;
  background: #f3f4f6;
}
.cart-item-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.cart-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
}
.cart-item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tw-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.cart-item-seller {
  font-size: 0.6875rem;
  color: var(--tw-orange);
  font-weight: 500;
  display: block;
}
.cart-item-meta,
.cart-item-city {
  font-size: 0.625rem;
  color: var(--tw-text-muted);
  display: block;
}
.cart-item-city {
  color: var(--tw-text-subtle);
}
.cart-item-line-total {
  display: block;
  margin-top: 0.125rem;
}
.cart-item-content {
  flex-wrap: wrap;
}
.cart-item-qty-row {
  width: 100%;
}
.cart-item-qty-wrap {
  display: inline-flex;
}
.cart-item-qty-btn {
  font-size: 1.125rem;
  line-height: 1;
  transition: background var(--tw-duration-fast) ease, border-color var(--tw-duration-fast) ease;
}
.cart-item-qty-btn:focus {
  outline: none;
  border-color: var(--tw-orange);
  box-shadow: 0 0 0 2px var(--tw-accent-subtle);
}
.cart-item-remove {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--tw-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.cart-item-remove:hover {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}
.cart-item-remove-icon {
  width: 1rem;
  height: 1rem;
}
.cart-empty-state {
  text-align: center;
  padding: 1.25rem 0.75rem;
  margin-bottom: 0.5rem;
}
.cart-empty-state.hidden {
  display: none !important;
}
.modal--cart .cart-order-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal--cart .cart-order-form .label {
  font-size: 0.75rem;
  margin-bottom: 0.0625rem;
}
.modal--cart .cart-order-form .input {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  font-size: 0.875rem;
}
.modal--cart .cart-sellers-summary {
  margin-bottom: 0.5rem !important;
  font-size: 0.6875rem;
}
.modal--cart .cart-submit-btn {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.8125rem;
}
.cart-empty-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  opacity: 0.6;
}
.cart-empty-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tw-text-muted);
}
.modal--cart .cart-order-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.modal--cart .cart-order-form.hidden {
  display: none !important;
}
.modal--cart .cart-order-form .label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tw-text-muted);
  margin-bottom: 0.125rem;
}
.modal--cart .cart-submit-btn {
  margin-top: 0.25rem;
}

/* Header menu (hamburger) dropdown */
.header-menu-wrap {
  position: relative;
}
.header-menu-dropdown {
  display: none;
  min-width: 11rem;
}
.header-menu-dropdown:not(.hidden) {
  display: block;
}
.header-menu-item {
  transition: background 0.15s ease, color 0.15s ease;
}

/* Auth tabs – teksti i dukshëm gjithmonë */
.modal-tabs {
  background: var(--tw-bg-surface);
}
#auth-modal .auth-tab {
  color: #374151 !important;
  font-weight: 500;
  transition: color var(--tw-duration-fast) ease, background var(--tw-duration-fast) ease;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
#auth-modal .auth-tab:hover {
  color: #111827 !important;
}
#auth-modal .auth-tab.active {
  color: #ffffff !important;
  font-weight: 600;
  background: var(--tw-orange) !important;
  border-bottom: 2px solid var(--tw-orange);
}
.auth-form[hidden] {
  display: none !important;
}

/* Phone prefix dropdown */
.phone-prefix-select-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.phone-prefix-trigger {
  cursor: pointer;
  user-select: none;
}
.phone-prefix-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--tw-bg-surface);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius);
  z-index: 200;
  box-shadow: var(--tw-shadow-soft);
  display: none;
}
.phone-prefix-dropdown.is-open {
  display: block;
}
.phone-prefix-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--tw-text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--tw-border);
  transition: background 0.15s;
}
.phone-prefix-option:last-child {
  border-bottom: none;
}
.phone-prefix-option:hover {
  background: var(--tw-bg-card-hover);
}

/* ========== Product modal ========== */
.product-modal-overlay:not([hidden]) .product-modal-content {
  animation: productModalSlideUp var(--tw-duration-normal) ease-out;
}
@keyframes productModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 640px) {
  .product-modal-overlay:not([hidden]) .product-modal-content {
    animation: productModalSlideUpCenter var(--tw-duration-normal) ease-out;
  }
}
@keyframes productModalSlideUpCenter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-modal-image {
  background: #f5f5f5;
  border-radius: var(--tw-radius);
  overflow: hidden;
}
.product-modal-contact-actions .btn-whatsapp:hover {
  background: #20bd5a !important;
  color: #fff;
}

/* ========== Flash toast ========== */
.flash-toast {
  border-radius: var(--tw-radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  background: #1a1a1a;
  color: #fff;
  box-shadow: var(--tw-shadow-soft);
  transition: opacity var(--tw-duration-normal) ease, transform var(--tw-duration-normal) ease, visibility var(--tw-duration-normal) ease;
}
.flash-toast.flash-toast--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  cursor: pointer;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--tw-bg-surface);
  border-top: 1px solid var(--tw-border);
}
.site-footer-copy {
  color: #5f6368;
  font-size: 0.8125rem;
}
.site-footer-nav a {
  color: #5f6368;
  font-size: 0.8125rem;
  transition: color var(--tw-duration-fast) ease;
}
.site-footer-nav a:hover {
  color: var(--tw-orange);
}

/* ========== Utility ========== */
.listings-panel[hidden] {
  display: none !important;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Tailwind orange override për konsistencë */
.text-orange {
  color: var(--tw-orange) !important;
}
.bg-orange {
  background-color: var(--tw-orange) !important;
}
.border-orange {
  border-color: var(--tw-orange) !important;
}
.hover\:text-orange:hover {
  color: var(--tw-orange) !important;
}
.hover\:bg-orange:hover {
  background-color: var(--tw-orange) !important;
}
.focus\:ring-orange:focus {
  --tw-ring-color: var(--tw-orange);
}
.shadow-orange-glow {
  box-shadow: 0 0 20px -4px var(--tw-orange-glow);
}
