/* ==========================================================================
   PHILIPS UZBEKISTAN - OFFICIAL BRAND DESIGN SYSTEM
   ========================================================================== */

:root {
  --philips-blue: #0B5ED7;
  --philips-blue-dark: #003764;
  --philips-blue-light: #1A73E8;
  --philips-navy: #0F204B;
  --philips-navy-dark: #08122B;
  --philips-light-blue-bg: #B3C8E6;
  --philips-light-blue-surface: #EBF1F8;
  
  /* Theme Colors for Story Banners */
  --theme-blue-gradient: linear-gradient(135deg, rgba(0, 37, 77, 0.95) 0%, rgba(0, 102, 161, 0.75) 50%, rgba(0, 37, 77, 0.95) 100%);
  --theme-green-gradient: linear-gradient(135deg, rgba(0, 48, 20, 0.95) 0%, rgba(0, 132, 61, 0.75) 50%, rgba(0, 48, 20, 0.95) 100%);
  --theme-purple-gradient: linear-gradient(135deg, rgba(46, 12, 51, 0.95) 0%, rgba(115, 48, 126, 0.75) 50%, rgba(46, 12, 51, 0.95) 100%);
  --theme-orange-gradient: linear-gradient(135deg, rgba(80, 28, 0, 0.95) 0%, rgba(216, 88, 0, 0.75) 50%, rgba(80, 28, 0, 0.95) 100%);
  
  --color-green-btn: #00843D;
  --color-green-btn-hover: #00662F;
  --color-purple-btn: #73307E;
  --color-purple-btn-hover: #5A2562;
  --color-orange-btn: #E65100;
  --color-orange-btn-hover: #BF4300;
  --color-blue-btn: #0B5ED7;
  --color-blue-btn-hover: #084298;

  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --text-light: #F9FAFB;
  --border-light: #E5E7EB;

  --font-family: "Centrale Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1380px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo svg {
  height: 26px;
  width: auto;
  fill: var(--philips-blue);
}

.region-title {
  font-size: 20px;
  font-weight: 300;
  color: #2D3748;
  border-left: 1px solid #CBD5E0;
  padding-left: 20px;
  letter-spacing: -0.2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1A202C;
  border-radius: 4px;
  cursor: pointer;
}

.nav-link:hover {
  background-color: #F7FAFC;
  color: var(--philips-blue);
}

.nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #718096;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
  border-top-color: var(--philips-blue);
}

/* Mega Menu Dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  min-width: 280px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
}

.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 14px;
  color: #2D3748;
}

.mega-dropdown a:hover {
  background-color: #EDF2F7;
  color: var(--philips-blue);
  padding-left: 24px;
}

.nav-item-scanner-mobile,
.nav-item-products-mobile {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-item-scanner-mobile,
  .nav-item-products-mobile {
    display: block !important;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--philips-blue) 0%, var(--philips-blue-dark) 100%);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(11, 94, 215, 0.3);
}

.btn-admin-access:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(11, 94, 215, 0.4);
}

.mobile-hamburger {
  display: none;
  font-size: 24px;
  color: #2D3748;
}

/* ==========================================================================
   PRO LUXURY LANGUAGE DROPDOWN SELECTOR (UZ, RU, EN)
   ========================================================================== */
.pro-lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pro-lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 30px;
  padding: 6px 14px 6px 12px;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(11, 94, 215, 0.04);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: #0F204B;
}

.pro-lang-trigger-btn:hover {
  border-color: #0B5ED7;
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.12);
  transform: translateY(-1px);
}

.pro-lang-dropdown-wrapper.open .pro-lang-trigger-btn {
  border-color: #0B5ED7;
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.15), 0 4px 12px rgba(11, 94, 215, 0.1);
  background: #F8FAFC;
}

.pro-lang-globe {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B5ED7;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.pro-lang-trigger-btn:hover .pro-lang-globe {
  transform: rotate(20deg);
}

.pro-lang-dropdown-wrapper.open .pro-lang-globe {
  transform: rotate(180deg);
}

.pro-lang-current {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #0F204B;
  text-transform: uppercase;
  user-select: none;
}

.pro-lang-arrow {
  color: #64748B;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.pro-lang-dropdown-wrapper.open .pro-lang-arrow {
  transform: rotate(180deg);
  color: #0B5ED7;
}

.pro-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 110px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 12px 32px -4px rgba(15, 32, 75, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 6px;
  z-index: 1050;
  display: none;
  flex-direction: column;
  gap: 3px;
  animation: langDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pro-lang-dropdown-wrapper.open .pro-lang-menu {
  display: flex !important;
}

@keyframes langDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pro-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 12px;
  transition: all 0.18s ease;
  font-family: inherit;
}

.pro-lang-item:hover {
  background: #F8FAFC;
}

.pro-lang-item.active {
  background: #EFF6FF;
}

.pro-lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0B5ED7;
  background: #EDF3F9;
  padding: 4px 9px;
  border-radius: 7px;
  letter-spacing: 0.5px;
  transition: all 0.18s ease;
}

.pro-lang-item.active .pro-lang-badge {
  background: #0B5ED7;
  color: #FFFFFF;
}

.pro-lang-check {
  color: #0B5ED7;
  display: none;
  flex-shrink: 0;
}

.pro-lang-item.active .pro-lang-check {
  display: block;
}

/* Language Selection Modal */
.lang-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.lang-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FFFFFF;
  text-align: left;
  width: 100%;
}

.lang-option-card:hover {
  border-color: var(--philips-blue);
  background-color: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lang-option-card.active {
  border-color: var(--philips-blue);
  background-color: #EFF6FF;
}

.lang-option-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-option-flag {
  font-size: 26px;
}

.lang-option-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F204B;
}

.lang-option-sub {
  font-size: 12px;
  color: #64748B;
}

.lang-check-icon {
  font-size: 18px;
  color: var(--philips-blue);
  font-weight: bold;
}

/* ==========================================================================
   STORY BANNERS SECTION
   ========================================================================== */
.story-banners-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.story-banner {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  overflow: hidden;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.story-banner.content-left {
  justify-content: flex-start;
  background-position: center center;
}

.story-banner.content-right {
  justify-content: flex-end;
  background-position: left center;
}

.story-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Theme Gradients */
.story-banner.p-blue-theme::before {
  background: linear-gradient(90deg, rgba(15, 32, 75, 0.93) 0%, rgba(15, 32, 75, 0.72) 48%, rgba(15, 32, 75, 0.15) 100%);
}

.story-banner.p-green-theme::before {
  background: linear-gradient(90deg, rgba(0, 48, 20, 0.93) 0%, rgba(0, 70, 30, 0.72) 48%, rgba(0, 48, 20, 0.15) 100%);
}

/* Purple Theme - Content on Right (MyPhilips Club with smiling woman on left) */
.story-banner.p-purple-theme::before,
.story-banner.content-right::before {
  background: linear-gradient(270deg, rgba(46, 12, 51, 0.95) 0%, rgba(65, 18, 72, 0.82) 44%, rgba(46, 12, 51, 0.08) 85%);
}

/* Orange Theme (#ПроверьСердце - with athlete running on right) */
.story-banner.p-orange-theme::before {
  background: linear-gradient(90deg, rgba(30, 15, 20, 0.92) 0%, rgba(50, 25, 20, 0.76) 48%, rgba(0, 0, 0, 0.12) 95%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 48px 32px;
}

.story-banner.content-left .banner-content {
  margin-left: 6%;
  margin-right: auto;
}

.story-banner.content-right .banner-content {
  margin-left: auto;
  margin-right: 6%;
}

.banner-category-badge {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.9;
}

.banner-title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 26px;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.btn-cta.btn-blue { background-color: var(--color-blue-btn); }
.btn-cta.btn-blue:hover { background-color: var(--color-blue-btn-hover); }

.btn-cta.btn-green { background-color: var(--color-green-btn); }
.btn-cta.btn-green:hover { background-color: var(--color-green-btn-hover); }

.btn-cta.btn-purple { background-color: #73307E; }
.btn-cta.btn-purple:hover { background-color: #5B2464; }

.btn-cta.btn-orange { background-color: #E65100; }
.btn-cta.btn-orange:hover { background-color: #C24400; }

@media (max-width: 960px) {
  .story-banners-container {
    padding: 12px 16px;
    gap: 16px;
  }
  .story-banner {
    min-height: 420px;
  }
  .story-banner::before,
  .story-banner.content-right::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
  }
  .story-banner.content-left .banner-content,
  .story-banner.content-right .banner-content {
    margin: 0 auto;
    max-width: 100%;
    padding: 36px 20px;
    text-align: center;
  }
  .btn-cta {
    width: 100%;
  }
}

/* ==========================================================================
   SUPPORT & MODEL SEARCH SECTION ("Мы всегда готовы помочь!")
   ========================================================================== */
.support-search-section {
  background-color: var(--philips-light-blue-bg);
  padding: 60px 0;
  margin: 20px 0;
}

.support-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.support-header {
  text-align: left;
  margin-bottom: 24px;
}

.support-title {
  font-size: 32px;
  font-weight: 700;
  color: #0F204B;
  margin-bottom: 8px;
}

.support-subtitle {
  font-size: 16px;
  color: #2D3748;
}

.search-box-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.search-label {
  font-size: 20px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 16px;
}

.search-form-row {
  display: flex;
  gap: 12px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 40px;
  font-size: 16px;
  border: 1px solid #CBD5E0;
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--philips-blue);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.2);
}

.btn-search-submit {
  background-color: var(--philips-blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-search-submit:hover {
  background-color: var(--philips-blue-dark);
}

.model-helper-trigger {
  margin-top: 14px;
  display: inline-block;
  color: var(--philips-blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.model-helper-trigger:hover {
  color: var(--philips-blue-dark);
}

/* Autocomplete / Live Search Results */
.search-results-wrapper {
  margin-top: 24px;
  border-top: 1px solid #E2E8F0;
  padding-top: 20px;
  display: none;
}

.search-results-wrapper.active {
  display: block;
}

.results-header {
  font-size: 16px;
  font-weight: 700;
  color: #2D3748;
  margin-bottom: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--philips-blue);
}

.product-img-wrapper {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

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

.product-model-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--philips-blue);
  background: #EBF8FF;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: #1A202C;
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: #718096;
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-price {
  font-size: 15px;
  font-weight: 800;
  color: #0F204B;
  margin-bottom: 12px;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn-product-manual {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #CBD5E0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #2D3748;
}

.btn-product-manual:hover {
  background: #F7FAFC;
  border-color: #A0AEC0;
}

.btn-product-buy {
  flex: 1;
  padding: 8px 12px;
  background: var(--philips-blue);
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.btn-product-buy:hover {
  background: var(--philips-blue-dark);
}

/* ==========================================================================
   3-COLUMN QUICK LINKS (Dark Navy Section)
   ========================================================================== */
.quick-links-section {
  background-color: var(--philips-navy);
  color: #FFFFFF;
  padding: 60px 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.quick-link-col-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #FFFFFF;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.quick-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-link-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: #E2E8F0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-link-item a:hover {
  color: #63B3ED;
  padding-left: 6px;
}

.link-arrow {
  font-size: 14px;
  opacity: 0.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0A1633;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 28px 24px;
}

.footer-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 1.2px;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-contacts-heading {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.footer-contacts-sub {
  font-size: 14.5px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
}

.footer-shield-logo svg {
  height: 58px;
  width: auto;
  fill: #FFFFFF;
  opacity: 0.85;
}

/* 4-Cards Grid for Contacts */
.footer-contacts-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 1100px) {
  .footer-contacts-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-contacts-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-shield-logo {
    display: none;
  }
  .footer-contacts-heading {
    font-size: 20px;
  }
}

.footer-contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon.phone {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.contact-card-icon.service {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.contact-card-icon.partner {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
}

.contact-card-content {
  flex: 1;
  min-width: 0;
}

.contact-card-content.full-width {
  width: 100%;
}

.contact-card-role {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.contact-card-val {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 3px 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card-desc {
  font-size: 11.5px;
  color: #64748B;
}

/* Social Buttons */
.footer-social-pill-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.social-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 100%;
}

.social-pill-btn:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.social-pill-btn.telegram {
  background: #229ED9;
}

.social-pill-btn.instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

/* Legal Bar */
.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.footer-legal-bar .legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #64748B;
  font-size: 12.5px;
}

.footer-legal-bar .copyright-text {
  color: #64748B;
  font-size: 12.5px;
}

/* ==========================================================================
   MODAL - "Где указывается номер продукта?"
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

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

.modal-card {
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #E2E8F0;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A202C;
}

.modal-close-btn {
  font-size: 24px;
  color: #A0AEC0;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #2D3748;
}

.modal-body {
  padding: 28px;
}

.guide-categories-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.guide-cat-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: #EDF2F7;
  font-size: 14px;
  font-weight: 600;
  color: #4A5568;
}

.guide-cat-btn.active, .guide-cat-btn:hover {
  background: var(--philips-blue);
  color: #FFFFFF;
}

.guide-display-card {
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.guide-diagram {
  width: 220px;
  height: 160px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--philips-blue);
  text-align: center;
  padding: 16px;
}

.guide-details h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 8px;
}

.guide-details p {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.5;
  margin-bottom: 12px;
}

.guide-example-badge {
  display: inline-block;
  background: #EBF8FF;
  color: var(--philips-blue);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #BEE3F8;
}

/* ==========================================================================
   STICKY COMPARE BAR
   ========================================================================== */
.sticky-compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 2px solid var(--philips-blue);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  padding: 12px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 1500;
}

.sticky-compare-bar.visible {
  display: flex;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE NAVIGATION
   ========================================================================== */

/* Mobile Hamburger Button (Removed/Hidden) */
.mobile-hamburger {
  display: none !important;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 42px;
  height: 42px;
  position: relative;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  z-index: 1002;
  flex-shrink: 0;
}

.mobile-hamburger:hover {
  background-color: rgba(11, 94, 215, 0.08);
}

.mobile-hamburger .hamburger-bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background-color: #0F204B;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-hamburger.active .hamburger-bar:nth-child(1) {
  transform: translateY(6.2px) rotate(45deg);
  background-color: #0B5ED7;
}

.mobile-hamburger.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-hamburger.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6.2px) rotate(-45deg);
  background-color: #0B5ED7;
}

/* Mobile Menu Backdrop Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 32, 75, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-locked {
  overflow: hidden !important;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .desktop-nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 20px 40px rgba(15, 32, 75, 0.2);
    padding: 18px 20px 40px;
    z-index: 10001;
    gap: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mobileDrawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileDrawerSlide {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .desktop-nav.mobile-open .nav-item {
    width: 100%;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 4px;
  }

  .desktop-nav.mobile-open .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    font-size: 15.5px;
    font-weight: 700;
    color: #0F204B;
    border-radius: 8px;
  }

  .desktop-nav.mobile-open .nav-link:hover,
  .desktop-nav.mobile-open .nav-link:active {
    background-color: #F8FAFC;
    color: #0B5ED7;
  }

  .desktop-nav.mobile-open .mega-dropdown {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 3px solid #0B5ED7;
    margin: 4px 0 10px 12px;
    padding: 6px 12px;
    background: #F8FAFC;
    border-radius: 0 8px 8px 0;
  }

  .desktop-nav.mobile-open .nav-item.dropdown-open .mega-dropdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .desktop-nav.mobile-open .nav-item.dropdown-open .nav-arrow {
    transform: rotate(180deg);
  }

  .desktop-nav.mobile-open .mega-dropdown a {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .desktop-nav.mobile-open .mega-dropdown a:hover {
    color: #0B5ED7;
    background: #EDF2F7;
  }

  .mobile-hamburger {
    display: none !important;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 10px 16px;
  }

  .region-title {
    display: none;
  }

  .header-left .brand-logo svg {
    width: 105px;
    height: 20px;
  }

  .btn-header-products {
    padding: 7px 12px;
    font-size: 13px;
  }

  .pro-lang-trigger-btn {
    padding: 5px 10px 5px 8px;
    gap: 6px;
  }

  .story-banner {
    min-height: 380px;
  }

  .banner-content {
    margin-left: 0;
    padding: 32px 20px;
  }

  .banner-title {
    font-size: 26px;
  }

  .banner-description {
    font-size: 15px;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .search-form-row {
    flex-direction: column;
  }

  .guide-display-card {
    flex-direction: column;
  }

  .guide-diagram {
    width: 100%;
  }

  /* Smooth swipeable category tabs */
  .bozor-pills-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px 20px -16px;
    padding: 4px 16px 12px 16px;
  }
  .bozor-pills-row::-webkit-scrollbar {
    display: none;
  }
  .bozor-pill-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 8px 12px;
    gap: 6px;
  }

  .desktop-nav.mobile-open {
    top: 50px;
    padding: 14px 16px 40px;
  }

  .header-left .brand-logo svg {
    width: 90px;
    height: 18px;
  }

  #btn-header-products-text,
  #btn-header-scanner-text {
    display: none;
  }

  .btn-header-products,
  .btn-header-scanner {
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    justify-content: center;
  }

  .pro-lang-pills {
    padding: 2px 4px;
    gap: 2px;
  }

  .pro-lang-pill {
    padding: 2px 4px;
    font-size: 10.5px;
  }

  .mobile-hamburger {
    display: none !important;
  }

  .story-banner {
    min-height: 320px;
  }

  .banner-content {
    padding: 24px 16px;
  }

  .banner-title {
    font-size: 22px;
  }

  .banner-description {
    font-size: 13.5px;
  }

  .banner-content .btn-cta {
    width: 100%;
    max-width: 100%;
    padding: 11px 20px;
    font-size: 14px;
  }

  .bozor-card {
    padding: 16px;
    border-radius: 18px;
  }

  .catalog-pagination-wrapper {
    margin-top: 24px;
    padding: 16px 0;
  }

  .pagination-info {
    font-size: 12px;
  }

  .pagination-controls {
    gap: 4px;
  }

  .pagination-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
    border-radius: 8px;
  }

  .pagination-page-btn {
    min-width: 34px;
    height: 36px;
    padding: 0 6px;
    font-size: 12.5px;
    border-radius: 8px;
  }

  .modal-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }
}


/* Category Filter Pills & QR Code Styles */
.category-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 14px 2px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.category-filter-pills::-webkit-scrollbar {
  height: 4px;
}
.category-filter-pills::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.cat-pill-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  user-select: none;
}

.cat-pill-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cat-pill-icon-wrap svg {
  width: 14px;
  height: 14px;
}

.cat-pill-btn:hover .cat-pill-icon-wrap {
  transform: scale(1.1);
}

.cat-pill-btn.active .cat-pill-icon-wrap {
  color: #FFFFFF !important;
}

.cat-pill-btn:hover {
  border-color: var(--philips-blue);
  color: var(--philips-blue);
  background: #F8FAFC;
  transform: translateY(-1px);
}

.cat-pill-btn.active {
  background-color: var(--philips-blue);
  color: #FFFFFF;
  border-color: var(--philips-blue);
  box-shadow: 0 2px 8px rgba(11, 94, 215, 0.3);
}

.cat-pill-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
}
.cat-pill-btn.active .cat-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Product Card QR Button */
.btn-product-qr {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #D8B4FE;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.btn-product-qr:hover {
  background: #7E22CE;
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .region-title {
    display: none;
  }
  .pro-lang-trigger-btn {
    padding: 4px 10px 4px 8px;
    gap: 6px;
  }
}

/* ==========================================================================
   PRODUCTS MEGA-DROPDOWN & DYNAMIC CATALOG SECTION (PRO ENTERPRISE)
   ========================================================================== */

/* Products Nav Item & Mega Dropdown */
.nav-item-products > .nav-link {
  color: var(--philips-blue) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 94, 215, 0.06);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(11, 94, 215, 0.15);
  transition: all 0.2s ease;
}

.nav-item-products > .nav-link:hover {
  background: var(--philips-blue);
  color: #FFFFFF !important;
  border-color: var(--philips-blue);
}

.nav-item-products > .nav-link:hover .nav-arrow {
  border-top-color: #FFFFFF;
}

.products-mega-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 30px 60px -15px rgba(15, 32, 75, 0.22), 0 0 0 1px rgba(11, 94, 215, 0.06);
  width: 630px;
  max-width: 94vw;
  padding: 20px 22px 16px 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1002;
  overflow: hidden;
}

.nav-item-products:hover .products-mega-dropdown,
.nav-item-products.active-open .products-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.products-mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
}

.products-mega-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.products-mega-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--philips-blue);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.2);
  display: inline-block;
  animation: pulseMegaDot 2.2s infinite ease-in-out;
}

@keyframes pulseMegaDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; box-shadow: 0 0 0 5px rgba(11, 94, 215, 0.25); }
}

.products-mega-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #475569;
}

.products-mega-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: #EFF6FF;
  color: var(--philips-blue);
  border: 1px solid #DBEAFE;
  padding: 3px 11px;
  border-radius: 20px;
}

.mega-count-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--philips-blue);
}

.products-mega-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
}

.products-mega-list::-webkit-scrollbar {
  width: 5px;
}
.products-mega-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 6px;
}

@media (max-width: 580px) {
  .products-mega-dropdown {
    width: 95vw;
    padding: 16px;
  }
  .products-mega-list {
    grid-template-columns: 1fr;
  }
}

.products-mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: #FFFFFF;
  border: 1.5px solid #E8EEF5;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  min-width: 0;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.products-mega-item:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FE 100%);
  border-color: #93C5FD;
  transform: translateY(-2.5px);
  box-shadow: 0 12px 24px -6px rgba(11, 94, 215, 0.16), 0 0 0 1px rgba(11, 94, 215, 0.12);
}

.products-mega-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.products-mega-item:hover .products-mega-icon {
  transform: scale(1.1) rotate(2deg);
}

.products-mega-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  gap: 3px;
}

.products-mega-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F204B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.products-mega-item:hover .products-mega-name {
  color: var(--philips-blue);
}

.products-mega-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.products-mega-pill {
  font-size: 11px;
  font-weight: 700;
  color: #0369A1;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 1.5px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-status-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  display: inline-block;
}

.products-mega-desc {
  font-size: 11px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.products-mega-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  opacity: 0.6;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.products-mega-item:hover .products-mega-arrow {
  color: var(--philips-blue);
  opacity: 1;
  transform: translateX(3px);
}

.products-mega-footer {
  margin-top: 14px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #F1F5F9;
}

.products-mega-footer-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.products-mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--philips-blue);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 5px 10px;
  border-radius: 6px;
}

.products-mega-view-all:hover {
  gap: 9px;
  background: #EFF6FF;
  color: var(--philips-blue-dark);
}

/* ==========================================================================
   3.5 BOZORCHA STYLE CATALOG SECTION (WARM CLEAN E-COMMERCE REFERENCE)
   ========================================================================== */
/* Header Products Button (Matching Screenshot Top Right) */
.btn-header-products {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1.5px solid #D1D5DB;
  border-radius: 9999px;
  color: #1F2937;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-header-products:hover {
  border-color: #14382B;
  color: #14382B;
  background: #F4F6F4;
  transform: translateY(-1px);
}

.btn-header-products .header-box-icon {
  color: #14382B;
  flex-shrink: 0;
}

.header-cart-badge {
  background: #14382B;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 9999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Header QR Scanner Button */
.btn-header-scanner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 9999px;
  color: #0B5ED7;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(11, 94, 215, 0.08);
}

.btn-header-scanner:hover {
  border-color: #0B5ED7;
  color: #FFFFFF;
  background: #0B5ED7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.28);
}

.btn-header-scanner .header-scanner-icon {
  color: inherit;
  flex-shrink: 0;
}

/* Catalog Section Container */
.products-catalog-section {
  padding: 52px 24px 75px;
  background-color: #FAF9F5;
  border-top: 1px solid #ECEBE4;
  border-bottom: 1px solid #ECEBE4;
  scroll-margin-top: 75px;
}

.catalog-container {
  max-width: 1180px;
  margin: 0 auto;
}

.catalog-header-bozor {
  text-align: left;
  margin-bottom: 24px;
}

.bozor-title {
  font-size: 36px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.8px;
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.bozor-subtitle {
  font-size: 15.5px;
  color: #4B5563;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* Category Filter Pills */
.bozor-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.bozor-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 500;
  color: #1F2937;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.bozor-pill-btn:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  color: #111827;
}

.bozor-pill-btn.active {
  background: #14382B;
  color: #FFFFFF;
  border-color: #14382B;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(20, 56, 43, 0.18);
}

/* Products Grid - 5 items per row */
.bozor-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 14px;
}

@media (max-width: 1280px) {
  .bozor-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 12px;
  }
}

@media (max-width: 980px) {
  .bozor-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 12px;
  }
}

@media (max-width: 680px) {
  .bozor-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}

@media (max-width: 540px) {
  .bozor-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
  }
  .bozor-card-info {
    padding: 10px 10px 12px;
  }
  .bozor-card-title {
    font-size: 13px;
    line-height: 1.35;
    min-height: 35px;
  }
  .bozor-card-img {
    padding: 8px;
  }
}

/* ==========================================================================
   ULTRA-PREMIUM PRODUCT CARD (State-of-the-Art E-Commerce Style)
   Optimized 1:1 ratio, blend-mode multiply, aligned baselines & frosted controls
   ========================================================================== */
.bozor-card {
  background: #FFFFFF;
  border: 1px solid #E8ECF2;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.bozor-card:hover {
  transform: translateY(-6px);
  border-color: #CBD5E1;
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* 1. Image Box (1:1 ratio with subtle background & clean blend) */
.bozor-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.bozor-card:hover .bozor-card-img-wrap {
  background: #F1F5F9;
}

/* Image inside with smooth zoom on hover & multiply blend for seamless white integration */
.bozor-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: multiply;
}

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

/* Image fallback placeholder */
.bozor-card-img-placeholder,
.bozor-card-img-wrap.has-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

/* 2. Top-Right Frosted Glass Heart / Favorite Button */
.bozor-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  padding: 0;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bozor-card-heart:hover {
  transform: scale(1.12);
  color: #E11D48;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.bozor-card-heart.active {
  color: #E11D48;
  background: #FFFFFF;
}

.bozor-card-heart.active .heart-icon {
  fill: #E11D48;
  stroke: #E11D48;
}

/* 3. Top-Left ORIGINAL Badge (Unobtrusive & Elegant) */
.bozor-card-badge-orig {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid #D1FAE5;
  border-radius: 6px;
  padding: 3.5px 7.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 10px;
  font-weight: 800;
  color: #065F46;
  letter-spacing: 0.4px;
  line-height: 1;
  pointer-events: none;
}

/* 4. Product Info Section */
.bozor-card-info {
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.bozor-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 39.2px;
  transition: color 0.2s ease;
}

.bozor-card:hover .bozor-card-title {
  color: #0B5ED7;
}

/* 5. Bottom Card Footer (Model & Action Button) */
.bozor-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.bozor-card-model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.bozor-card-model .model-label {
  color: #64748B;
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}

.bozor-card-model .model-code {
  color: #0F172A;
  font-weight: 700;
  background: #F1F5F9;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  border: 1px solid #CBD5E1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 48px);
  text-align: right;
  letter-spacing: 0.2px;
}

.bozor-card-action-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #0B5ED7;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 5px 8px;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bozor-card-action-hint span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bozor-card-action-hint svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.bozor-card:hover .bozor-card-action-hint {
  background: #0B5ED7;
  color: #FFFFFF;
  border-color: #0B5ED7;
  transform: translateY(-0.5px);
  box-shadow: 0 2px 6px rgba(11, 94, 215, 0.2);
}

/* Load More Button Wrapper */
.catalog-pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  gap: 10px;
}

.catalog-load-more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-bozor-load-more {
  background: #0B5ED7;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.25);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-bozor-load-more:hover {
  background: #094CB2;
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.35);
  transform: translateY(-2px);
}

.btn-bozor-load-more:active {
  transform: translateY(0);
}

.btn-bozor-load-more svg {
  transition: transform 0.2s ease;
}

.btn-bozor-load-more:hover svg {
  transform: translateY(2px);
}

.catalog-load-more-count {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
}

/* Floating Toast Notifications */
.bozor-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.bozor-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #14382B;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
  animation: bozorSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-size: 14px;
}

.bozor-toast.fade-out {
  animation: bozorFadeOut 0.3s ease forwards;
}

.bozor-toast-icon {
  font-size: 18px;
}

.bozor-toast-msg {
  flex-grow: 1;
}

.bozor-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.bozor-toast-close:hover {
  color: #FFFFFF;
}

@keyframes bozorSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bozorFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.btn-catalog-compare {
  flex: 0.8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-catalog-compare:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}

/* Empty State */
.catalog-empty-box {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 2px dashed #CBD5E1;
  border-radius: 20px;
  padding: 56px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.catalog-empty-icon {
  font-size: 52px;
  margin-bottom: 16px;
}

.catalog-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.catalog-empty-desc {
  font-size: 14.5px;
  color: #64748B;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.catalog-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--philips-blue) 0%, var(--philips-blue-dark) 100%);
  color: #FFFFFF;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.3);
}

.catalog-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.4);
}

/* Catalog Pagination Styles */
.catalog-pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 0 10px;
  border-top: 1px solid #E2E8F0;
}

.pagination-info {
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
  text-align: center;
}

.pagination-info strong {
  color: #0F172A;
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pagination-btn:hover:not(:disabled) {
  border-color: #0B5ED7;
  color: #0B5ED7;
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11, 94, 215, 0.12);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #E2E8F0;
  color: #94A3B8;
  background: #F8FAFC;
  box-shadow: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pagination-page-btn:hover {
  border-color: #0B5ED7;
  color: #0B5ED7;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.pagination-page-btn.active {
  background: linear-gradient(135deg, #0B5ED7 0%, #084298 100%);
  border-color: #0B5ED7;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 94, 215, 0.28);
}

.pagination-ellipsis {
  padding: 0 6px;
  color: #94A3B8;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
}

/* Fallback card placeholder when product has no image */
.product-no-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border-radius: 8px;
  gap: 6px;
  border: 1px dashed #CBD5E1;
}

.product-no-img span {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: #94A3B8;
}

.product-no-img small {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
}

/* ==========================================================================
   QR CAMERA SCANNER MODAL (FULL-SCREEN RESPONSIVE / LUXURY VIEWFINDER)
   ========================================================================== */
.qr-scanner-backdrop {
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qr-scanner-backdrop.open {
  display: flex;
  opacity: 1;
}

.qr-scanner-card {
  width: 100%;
  max-width: 500px;
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.1);
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: qrModalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes qrModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scanner Header */
.qr-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-scanner-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-scanner-title-icon {
  flex-shrink: 0;
}

.qr-scanner-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: scannerPulse 1.8s infinite;
  transition: all 0.3s ease;
}

.qr-scanner-pulse-dot.error {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  animation: none;
}

.qr-scanner-pulse-dot.loading {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
  animation: scannerPulse 1s infinite;
}

@keyframes scannerPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.qr-scanner-header h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
  letter-spacing: -0.2px;
}

.qr-scanner-actions-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-scanner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-scanner-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: scale(1.05);
}

.btn-scanner-icon.active {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.btn-scanner-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-scanner-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #F87171;
  transform: rotate(90deg);
}

/* Scanner Viewport */
.qr-scanner-body {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #000000;
}

.qr-scanner-viewport-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-reader-container {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

#qr-reader-container video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Clean unwanted html5-qrcode library default text */
#qr-reader-container > span,
#qr-reader-container > div:not([style*="position: relative"]) {
  display: none !important;
}

/* Viewfinder Overlay with corners & scanning laser */
.qr-viewfinder-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.qr-viewfinder-box {
  position: relative;
  width: 240px;
  height: 240px;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.52);
  border-radius: 18px;
}

.scanner-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #10B981;
  border-width: 4px;
}

.corner-tl {
  top: -2px;
  left: -2px;
  border-top-style: solid;
  border-left-style: solid;
  border-top-left-radius: 16px;
}

.corner-tr {
  top: -2px;
  right: -2px;
  border-top-style: solid;
  border-right-style: solid;
  border-top-right-radius: 16px;
}

.corner-bl {
  bottom: -2px;
  left: -2px;
  border-bottom-style: solid;
  border-left-style: solid;
  border-bottom-left-radius: 16px;
}

.corner-br {
  bottom: -2px;
  right: -2px;
  border-bottom-style: solid;
  border-right-style: solid;
  border-bottom-right-radius: 16px;
}

/* Animated Neon Laser */
.scanner-laser {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10B981 20%, #6EE7B7 50%, #10B981 80%, transparent);
  box-shadow: 0 0 12px #10B981, 0 0 20px rgba(52, 211, 153, 0.8);
  border-radius: 3px;
  animation: scanLaserCycle 2s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
}

.scanner-laser.hidden {
  display: none !important;
}

@keyframes scanLaserCycle {
  0% {
    top: 10px;
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 13px);
    opacity: 0.7;
  }
}

/* Loading State Overlay inside Viewport */
.qr-scanner-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #E2E8F0;
  font-size: 13.5px;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}

.qr-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #38BDF8;
  border-radius: 50%;
  animation: qrSpin 0.8s linear infinite;
}

@keyframes qrSpin {
  to { transform: rotate(360deg); }
}

/* Error / Fallback Overlay inside Viewport */
.qr-scanner-error-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(26, 32, 53, 0.97), rgba(11, 15, 25, 0.99));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px;
  animation: fadeIn 0.25s ease;
}

.qr-error-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.qr-scanner-error-overlay h4 {
  font-size: 16px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 6px 0;
}

.qr-scanner-error-overlay p {
  font-size: 13px;
  line-height: 1.5;
  color: #94A3B8;
  margin: 0 0 16px 0;
  max-width: 310px;
}

.btn-scanner-retry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0B5ED7;
  color: #FFFFFF;
  border: 1px solid #1D4ED8;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.4);
  transition: all 0.2s ease;
}

.btn-scanner-retry:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 94, 215, 0.55);
}

/* Scanner Footer */
.qr-scanner-footer {
  padding: 16px 20px 20px;
  background: #0B0F19;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-scanner-hint {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 10px 0;
  line-height: 1.45;
  transition: color 0.2s ease;
}

/* Divider */
.qr-scanner-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 12px;
  position: relative;
}

.qr-scanner-divider::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.qr-scanner-divider span {
  position: relative;
  background: #0B0F19;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 1px;
}

.qr-scanner-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-scanner-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F1F5F9;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-scanner-upload:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Manual Code Form */
.qr-manual-form {
  margin-top: 12px;
  width: 100%;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
}

.qr-manual-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 4px 5px 4px 14px;
  gap: 8px;
  transition: all 0.2s ease;
}

.qr-manual-input-wrap:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: #0B5ED7;
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.22);
}

.qr-manual-icon {
  flex-shrink: 0;
}

.qr-manual-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13px;
  min-width: 0;
}

.qr-manual-input::placeholder {
  color: #64748B;
  font-size: 12.5px;
}

.btn-qr-manual-submit {
  background: #0B5ED7;
  color: #FFFFFF;
  border: none;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-qr-manual-submit:hover {
  background: #1D4ED8;
}

.qr-manual-error {
  font-size: 12px;
  color: #F87171;
  margin-top: 6px;
  text-align: center;
}

.qr-scanner-status {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   FULL-SCREEN RESPONSIVE SCANNER ON SMARTPHONES & TABLETS (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .qr-scanner-backdrop {
    padding: 0;
  }

  .qr-scanner-card {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    animation: none;
    z-index: 100001;
  }

  .qr-scanner-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
    background: rgba(11, 15, 25, 0.95);
    z-index: 20;
  }

  .qr-scanner-body {
    flex: 1;
    height: 100%;
  }

  .qr-scanner-viewport-wrapper {
    flex: 1;
    height: 100%;
  }

  .qr-viewfinder-box {
    width: min(72vw, 270px);
    height: min(72vw, 270px);
  }

  .qr-scanner-footer {
    padding: 16px 20px max(24px, env(safe-area-inset-bottom));
    background: rgba(11, 15, 25, 0.95);
    z-index: 20;
  }
}





