/* =========================================
   CSS VARIABLES & RESET
   ========================================= */
:root {
  --orange: #FF6B00;
  --orange-light: #FF8C00;
  --orange-pale: #FFF4EA;
  --orange-mid: #FFE0C2;
  --orange-dark: #D95B00;
  --text-dark: #1A1A2E;
  --text-mid: #4A4A6A;
  --text-light: #9898B0;
  --text3: #9CA3AF;
  --bg: #F7F8FA;
  --surface2: #F3F4F6;
  --white: #FFFFFF;
  --border: #EBEBF0;
  --shadow: 0 4px 20px rgba(255, 107, 0, .12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .07);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --font: 'Nunito', sans-serif;
  --nav-h: 64px;
  --header-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%;
  overflow: hidden
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font)
}

input {
  outline: none;
  font-family: var(--font)
}

a {
  text-decoration: none;
  color: inherit
}

img {
  display: block;
  max-width: 100%
}

ul {
  list-style: none
}

/* =========================================
   PAGE SYSTEM
   ========================================= */
.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(30px);
}

.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* =========================================
   SPLASH SCREEN
   ========================================= */
#splash {
  background: linear-gradient(145deg, #FF8C00, var(--orange));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 100;
}

.splash-logo {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashPulse 1.5s ease infinite;
}

.splash-logo svg {
  width: 56px;
  height: 56px
}

.splash-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.splash-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  font-weight: 500
}

.splash-dots {
  display: flex;
  gap: 8px;
  margin-top: 32px
}

.splash-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  animation: dotPulse 1.2s ease infinite;
}

.splash-dots span:nth-child(2) {
  animation-delay: .2s
}

.splash-dots span:nth-child(3) {
  animation-delay: .4s
}

@keyframes splashPulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.08)
  }
}

@keyframes dotPulse {

  0%,
  100% {
    background: rgba(255, 255, 255, .4)
  }

  50% {
    background: #fff
  }
}

/* =========================================
   LOGIN PAGE
   ========================================= */
#login {
  background: linear-gradient(180deg, #FFF9F4 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.login-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 20px;
  position: relative;
  overflow: hidden;
}

.login-blob {
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #FFD6A5 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-blob2 {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #FFE0C2 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lang-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.login-logo-wrap {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #FF8C00, var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(255, 107, 0, .35);
  margin-bottom: 16px;
  animation: floatLogo 3s ease-in-out infinite;
}

.login-logo-wrap img {
    transform: scale(1.3) translate(0px, 7px);
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

.login-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -1px
}

.login-sub {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
  margin-top: 4px
}

.login-form {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 24px 32px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, .06);
}

.login-form h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark)
}

.input-group {
  position: relative;
  margin-bottom: 14px;
}

.input-group .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  display: flex;
}

.input-group .ico-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  display: flex;
  cursor: pointer;
  transition: color var(--transition);
}

.input-group .ico-right:hover {
  color: var(--orange)
}

.input-group input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-group input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .1);
  background: var(--white);
}

.input-group input::placeholder {
  color: var(--text-light)
}

.btn-primary {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(255, 107, 0, .4);
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: .3px;
  margin-top: 6px;
}

.btn-primary:active {
  transform: scale(.97);
  box-shadow: 0 2px 8px rgba(255, 107, 0, .3)
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 0, .45)
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-sms {
  width: 100%;
  height: 52px;
  background: var(--white);
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition);
}

.btn-sms:hover {
  background: var(--orange-pale)
}

.login-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}

.login-footer a {
  color: var(--orange);
  font-weight: 700
}

.forgot-link {
  text-align: right;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

/* =========================================
   REGISTER PAGE
   ========================================= */
#register {
  background: var(--white)
}

.register-header {
  background: linear-gradient(135deg, #FF8C00, var(--orange));
  padding: 50px 24px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.register-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  border-radius: 50% 50% 0 0;
}

.back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.back-btn:hover {
  background: rgba(255, 255, 255, .35)
}

.register-header h1 {
  font-size: 26px;
  font-weight: 900;
  color: #fff
}

.register-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-top: 4px;
  font-weight: 500
}

.register-body {
  padding: 8px 24px 32px;
  overflow-y: auto;
  flex: 1
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  margin-top: 14px;
  display: block
}

/* =========================================
   MAIN APP LAYOUT
   ========================================= */
#home,
#categories,
#cart,
#favorites,
#profile,
#product {
  display: flex;
  flex-direction: column;
}

.app-header {
  height: var(--header-h);
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.header-menu {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg);
}

.header-logo {
  flex: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.5px;
}

.header-bell {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-pale);
  position: relative;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--white);
}

.scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 12px);
}

.scroll-body::-webkit-scrollbar {
  display: none
}

/* =========================================
   BOTTOM NAV
   ========================================= */
.bottom-nav {
  height: var(--nav-h);
  background: var(--white);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  z-index: 50;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav-item.active {
  color: var(--orange)
}

.nav-item .nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item span {
  font-size: 10px;
  font-weight: 700
}

.nav-badge {
  position: absolute;
  top: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  right: calc(50% - 18px);
  border: 2px solid var(--white);
}

/* =========================================
   SEARCH BAR
   ========================================= */
.search-wrap {
  padding: 12px 16px
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 12px;
  padding: 0 16px;
  height: 44px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.search-bar:focus-within {
  border-color: var(--orange)
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.search-bar input::placeholder {
  color: var(--text-light)
}

/* =========================================
   BANNER SLIDER
   ========================================= */
.banner-wrap {
  padding: 0 16px;
  margin-bottom: 20px
}

.banner-slider {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 150px;
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.banner-slide:nth-child(1) {
  background: linear-gradient(135deg, #FF8C00, #FF4D00)
}

.banner-slide:nth-child(2) {
  background: linear-gradient(135deg, #5B5EA6, #9B2335)
}

.banner-slide:nth-child(3) {
  background: linear-gradient(135deg, #00B09B, #96C93D)
}

.banner-text {
  color: #fff;
  z-index: 2;
  position: relative
}

.banner-text h3 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px
}

.banner-text p {
  font-size: 12px;
  opacity: .85;
  margin-bottom: 12px;
  font-weight: 500
}

.banner-btn {
  display: inline-flex;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background var(--transition);
}

.banner-btn:hover {
  background: rgba(255, 255, 255, .35)
}

.banner-deco {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 130px;
  height: 130px;
  opacity: .35;
}

.banner-deco svg {
  width: 100%;
  height: 100%
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .4);
  transition: all .3s ease;
  cursor: pointer;
}

.banner-dot.active {
  background: #fff;
  width: 18px
}

/* =========================================
   CATEGORIES
   ========================================= */
.section {
  padding: 0 16px;
  margin-bottom: 20px
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark)
}

.section-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 2px
}

.cats-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.cats-row::-webkit-scrollbar {
  display: none
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
}

.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cat-item:active .cat-icon {
  transform: scale(.93)
}

.cat-icon.c1 {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB)
}

.cat-icon.c2 {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2)
}

.cat-icon.c3 {
  background: linear-gradient(135deg, #F3E5F5, #E1BEE7)
}

.cat-icon.c4 {
  background: linear-gradient(135deg, #FCE4EC, #F8BBD0)
}

.cat-icon.c5 {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9)
}

.cat-icon.c6 {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3)
}

.cat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
  text-align: center;
  white-space: nowrap
}

/* =========================================
   PRODUCTS GRID
   ========================================= */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

.product-card:active {
  transform: scale(.97)
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(255, 107, 0, .15)
}

.product-img {
  height: 130px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition);
}

.product-wish:active {
  transform: scale(.85)
}

.product-wish.liked {
  color: #E53935
}

.product-info {
  padding: 10px
}

.product-name {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 2px
}

.product-model {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.2
}

.product-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--orange)
}

.product-old {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-top: 1px
}

.product-discount {
  display: inline-flex;
  background: #FFF0E6;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* =========================================
   TRUST BADGES
   ========================================= */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin: 0 16px 20px;
  box-shadow: var(--shadow-card);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--orange);
  background: var(--orange-pale);
}

.trust-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.2
}

/* =========================================
   SHOPS ROW
   ========================================= */
.shops-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none
}

.shops-row::-webkit-scrollbar {
  display: none
}

.shop-card {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 56px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.shop-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(255, 107, 0, .15)
}

.shop-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.3px
}

.shop-logo.olcha {
  color: #E53935
}

.shop-logo.texno {
  color: #1565C0
}

.shop-logo.asax {
  color: #1565C0
}

.shop-logo.korz {
  color: #E53935
}

.shop-logo.uzum {
  color: #6A1B9A
}

/* =========================================
   CATEGORIES PAGE
   ========================================= */
.cats-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.cat-big-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.cat-big-card:active {
  transform: scale(.96)
}

.cat-big-icon {
  font-size: 34px;
  color: var(--orange);
  line-height: 1;
}

.cat-big-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center
}

.cat-big-count {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500
}

/* =========================================
   CART PAGE
   ========================================= */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
}

.cart-empty-icon {
  font-size: 72px;
  color: var(--orange);
  line-height: 1;
}

.cart-empty h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center
}

.cart-empty p {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  font-weight: 500
}

.cart-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px
}

.cart-item-model {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 8px
}

.cart-item-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--orange)
}

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--orange-mid)
}

.qty-num {
  font-size: 14px;
  font-weight: 800;
  min-width: 20px;
  text-align: center
}

.cart-delete {
  color: var(--text-light);
  margin-left: auto;
  align-self: flex-start;
  padding: 4px;
  cursor: pointer;
  font-size: 18px
}

.cart-footer {
  padding: 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-total-label {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 600
}

.cart-total-amount {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark)
}

.cart-total-amount span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light)
}

/* =========================================
   FAVORITES PAGE
   ========================================= */
.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
}

/* =========================================
   PROFILE PAGE
   ========================================= */
.profile-hero {
  background: linear-gradient(135deg, #FF8C00, var(--orange));
  padding: 40px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.profile-hero::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg);
  border-radius: 50% 50% 0 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: 3px solid rgba(255, 255, 255, .5);
  color: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff
}

.profile-phone {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  font-weight: 500
}

.profile-stats {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  margin: 8px 16px 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.profile-stat {
  flex: 1;
  padding: 14px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.profile-stat:last-child {
  border-right: none
}

.profile-stat-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark)
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 2px
}

.profile-menu {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  margin-bottom: 2px;
}

.profile-menu-item:hover {
  background: var(--orange-pale)
}

.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange-pale);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-menu-text {
  flex: 1
}

.profile-menu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark)
}

.profile-menu-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 1px
}

.chevron {
  color: var(--text-light);
  font-size: 16px
}

.logout-btn {
  margin: 20px 16px;
  width: calc(100% - 32px);
  height: 48px;
  background: var(--white);
  border: 1.5px solid #FFCDD2;
  color: #E53935;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition);
}

.logout-btn:hover {
  background: #FFF5F5
}

/* =========================================
   PRODUCT DETAIL PAGE
   ========================================= */
#product .app-header {
  position: relative;
  top: auto
}

.product-detail-img {
  height: 280px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  position: relative;
  overflow: hidden;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-body {
  background: var(--bg);
  padding: 0 0 80px;
}

.product-detail-info {
  background: var(--white);
  padding: 20px 16px;
  margin-bottom: 12px;
}

.product-detail-category {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  background: var(--orange-pale);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.product-detail-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 8px
}

.product-detail-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 4px
}

.product-detail-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.stars {
  color: #FFB300;
  font-size: 14px
}

.rating-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark)
}

.rating-count {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500
}

.product-spec {
  background: var(--white);
  padding: 16px;
  margin-bottom: 12px;
}

.spec-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.spec-row:last-child {
  border-bottom: none
}

.spec-key {
  color: var(--text-mid);
  font-weight: 500
}

.spec-val {
  color: var(--text-dark);
  font-weight: 700;
  text-align: right
}

.product-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
  z-index: 60;
}

.btn-wish-big {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange-pale);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.btn-add-cart {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 107, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition);
}

/* =========================================
   ADMIN FORMS
   ========================================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.btn-add-cart:active {
  transform: scale(.97)
}

/* =========================================
   TOAST
   ========================================= */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

/* =========================================
   CHIPS / FILTER
   ========================================= */
.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
  display: none
}

.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}

.chip.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange)
}

/* =========================================
   SIDEBAR DRAWER
   ========================================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 200;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: 201;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0)
}

.drawer-head {
  background: linear-gradient(135deg, #FF8C00, var(--orange));
  padding: 50px 20px 24px;
}

.drawer-head h3 {
  font-size: 20px;
  font-weight: 900;
  color: #fff
}

.drawer-head p {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-top: 4px
}

.drawer-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.drawer-item:hover {
  background: var(--orange-pale);
  color: var(--orange)
}

.drawer-item-icon {
  font-size: 20px;
  width: 24px;
  text-align: center
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fade-in {
  animation: fadeInUp .35s ease forwards
}

.fade-in:nth-child(2) {
  animation-delay: .05s
}

.fade-in:nth-child(3) {
  animation-delay: .10s
}

.fade-in:nth-child(4) {
  animation-delay: .15s
}

.fade-in:nth-child(5) {
  animation-delay: .20s
}

/* =========================================
   UTILITIES
   ========================================= */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center
}

.gap-8 {
  gap: 8px
}

.fw-700 {
  font-weight: 700
}

.fs-12 {
  font-size: 12px
}

.text-orange {
  color: var(--orange)
}

.text-light {
  color: var(--text-light)
}

.mb-16 {
  margin-bottom: 16px
}

.section-label {
  padding: 8px 16px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-light);
}

.drawer-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-item-icon i {
  font-size: 17px;
  color: var(--orange);
}

/* Shared overlay and sheet styles for marketing and my-shops */
.overlay{display:none;position:fixed;inset:0;width:100%;height:100%;background:rgba(26,26,46,0.6);align-items:flex-end;justify-content:center;padding:0;z-index:999}
.overlay.open{display:flex}
.sheet{background:#fff;border-radius:20px 20px 0 0;width:100%;max-height:85vh;overflow-y:auto;padding:20px 16px 24px}
.sheet-handle{width:36px;height:4px;background:#EBEBF0;border-radius:2px;margin:0 auto 16px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.sheet-title{font-size:16px;font-weight:800;color:#1A1A2E}
.sheet-close{width:30px;height:30px;border-radius:8px;background:#F7F8FA;border:1px solid #EBEBF0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.sheet-close i{font-size:16px;color:#9898B0}

/* centered success modal */
.center-modal{background:#fff;border-radius:14px;padding:20px;max-width:420px;width:90%;box-shadow:0 10px 30px rgba(0,0,0,0.25);text-align:center}
.center-modal h3{margin-bottom:8px}
.center-modal p{color:var(--text-light);margin-bottom:14px}
.center-modal .btn-row{display:flex;gap:10px;justify-content:center}
