:root {
  --primary-color: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  --button-gradient: linear-gradient(90deg, #4f46e5 0%, #3b82f6 100%);
  --support-btn-gradient: linear-gradient(90deg, #4361ee 0%, #2563eb 100%);
  --accent-red: #ef4444;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-blue: 0 6px 20px rgba(59, 130, 246, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.4;
  font-size: 14px;
  padding-bottom: 60px;
  overflow-x: hidden;
  user-select: none;
}

/* Container */
.app-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 12px 14px 40px;
}

/* Header */
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.top-bar-controls {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.lang-switcher-pill {
  display: flex;
  background: #e2e8f0;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 12px;
}

.brand-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.05));
  transition: transform 0.2s ease;
}

.brand-uzterminal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.brand-title-wrap {
  text-align: center;
}

.brand-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.brand-heading {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4361ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 3px;
}

/* Technical Support Button */
.support-banner-btn {
  width: 100%;
  background: var(--support-btn-gradient);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-blue);
  cursor: pointer;
  margin-bottom: 16px;
  transition: transform 0.15s ease;
}

.support-banner-btn:active {
  transform: scale(0.98);
}

/* Search and Filter */
.search-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.search-bar {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #ebf1fa;
  border-radius: 20px;
  padding: 10px 16px;
}

.search-icon {
  margin-right: 8px;
  color: #64748b;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.search-input::placeholder {
  color: #94a3b8;
}

.filter-btn {
  width: 44px;
  height: 44px;
  background: #ebf1fa;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}

.filter-btn:active {
  background: #dbe4f4;
}

/* Section Title */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

/* Categories Horizontal Scroll */
.categories-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 12px;
  padding: 6px 4px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-wrapper::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 10px 10px 12px;
  width: 98px;
  min-width: 98px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.category-card.active {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: #f8fafc;
  flex-shrink: 0;
}

.cat-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  word-break: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 86px;
}

/* Product Catalog Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease;
  position: relative;
}

.product-card:active {
  transform: scale(0.985);
}

.product-thumb-container {
  width: 100%;
  height: 130px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  cursor: pointer;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  cursor: pointer;
}

.product-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
}

.current-price {
  color: var(--accent-red);
  font-size: 18px;
  font-weight: 800;
}

.product-badge-pill {
  align-self: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.btn-select {
  width: 100%;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(67, 97, 238, 0.4);
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-select:active {
  transform: scale(0.96);
}

/* Useful Links / Footer */
.footer-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
}

.useful-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.useful-links-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.social-links-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-telegram {
  background: #0088cc;
}

.social-whatsapp {
  background: #25d366;
}

.social-youtube {
  background: #ff0000;
}

.contact-phones-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-phones-block .title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-phone-link {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
}

/* Floating Scroll to Top */
.btn-scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* Modals & Bottom Sheets */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-card,
.bottom-sheet {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff !important;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 22px 20px 32px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.modal-backdrop.active .modal-content-card,
.modal-backdrop.active .bottom-sheet {
  transform: translateY(0);
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  z-index: 20;
  transition: all 0.15s ease;
}

.modal-close-icon:active {
  background: #e2e8f0;
  transform: scale(0.92);
}

.detail-floating-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, background 0.15s ease;
}

.detail-floating-close:active {
  background: #f1f5f9;
  transform: scale(0.92);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.sheet-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
}

/* Sort Options List */
.sort-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sort-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
}

.sort-item.selected {
  background: #eff6ff;
  color: #2563eb;
}

.sort-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-item.selected .sort-radio {
  border-color: #2563eb;
}

.sort-item.selected .sort-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
}

/* Product Detail Modal & Form Styling */
.detail-gallery-wrap,
.detail-gallery-container {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  margin-bottom: 14px;
  position: relative;
  border: 1px solid #e2e8f0;
  padding: 10px;
  text-align: center;
}

.detail-hero-img,
.detail-main-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 4px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: #3b82f6;
  width: 18px;
  border-radius: 4px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 600;
}

.detail-current-price {
  color: #ef4444;
  font-size: 26px;
  font-weight: 800;
}

.detail-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.detail-badge-pill,
.detail-category-badge {
  display: inline-block;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.packaging-selector-wrap,
.detail-packaging-section {
  margin-bottom: 16px;
}

.pack-label,
.detail-packaging-section label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.pack-select,
.packaging-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}

.detail-description-block,
.detail-description-box {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-bottom: 16px;
}

.desc-content,
.detail-description-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
}

.cert-box,
.detail-certificate-box,
.video-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
}

.cert-title,
.video-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.cert-img,
.detail-certificate-img,
.video-frame-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: block;
  cursor: pointer;
}

.detail-footer-action,
.detail-sticky-order-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: 14px;
}

.btn-primary-action {
  width: 100%;
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: transform 0.15s, opacity 0.15s;
}

.btn-primary-action:active {
  transform: scale(0.97);
}

.btn-tanlash-pill {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 28px;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-tanlash-pill:active {
  transform: scale(0.98);
}

/* Checkout Notice Cards */
.checkout-notice-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.checkout-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.checkout-notice-header .notice-icon {
  font-size: 16px;
}

.checkout-notice-header .notice-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
}

.checkout-notice-body {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.checkout-total-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 12px 0 16px;
}

.deliv-free-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 6px;
}

.deliv-free-text {
  font-size: 13px;
  color: #16a34a;
}

.final-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.final-total-price {
  font-size: 22px;
  font-weight: 900;
  color: #ef4444;
}

.detail-category-subtext {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  margin-bottom: 12px;
}

.detail-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 14px 0;
}

.order-header {
  margin-bottom: 16px;
  padding-right: 36px;
}

.order-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a;
}

.order-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.order-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.order-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-counter,
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn,
.btn-step {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
}

.qty-btn:active,
.btn-step:active {
  background: #f1f5f9;
}

.qty-val {
  font-size: 16px;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  color: #1e293b;
}

.order-total-row {
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
}

.order-total-val {
  font-size: 18px;
  font-weight: 800;
  color: #ef4444;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-step {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quantity-stepper span {
  font-size: 16px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
