@font-face {
  font-family: 'Waverly CF';
  src: url('/fonts/WaverlyCF-Medium.woff2') format('woff2'),
       url('/fonts/WaverlyCF-Medium.woff') format('woff'),
       url('/fonts/WaverlyCF-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('/fonts/Nexa-Regular.woff2') format('woff2'),
       url('/fonts/Nexa-Regular.woff') format('woff'),
       url('/fonts/Nexa-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #000;
  text-decoration: none;
}

button, select {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Header */
#header {
  padding: 16px 0 8px;
  border-bottom: none;
  background: #fff;
  text-align: center;
}

#logo {
  width: 60%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.03);
}

#logo-link {
  display: block;
  text-decoration: none;
  color: #000;
}

#logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

#logo-text:hover {
  transform: scale(1.03);
}

.logo-arka {
  font-family: 'Waverly CF', 'Playfair Display', 'Georgia', serif;
  font-weight: 500;
  font-size: 72px;
  letter-spacing: 12px;
  text-transform: uppercase;
  line-height: 1;
  color: #000;
}

.logo-sub {
  font-family: 'Nexa', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: #000;
  line-height: 1;
  margin-top: 8px;
}

/* Tab bar */
#tab-bar {
  display: flex;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 99;
}

.tab-btn {
  flex: 1;
  padding: 12px 4px;
  background: #fff;
  color: #aaa;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}

.tab-btn.active {
  color: #000;
  border-bottom-color: #000;
  font-weight: 700;
}

.tab-btn:active {
  transform: scale(0.95);
}

.tab-badge {
  background: #000;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 14px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: none;
  border: none;
  outline: none;
}

/* Main */
#app {
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
#footer {
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

.footer-section {
  margin-bottom: 16px;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-section a {
  display: block;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s, transform 0.2s;
}

.footer-section a:hover {
  border-bottom-color: #000;
  transform: translateX(4px);
}

#social-links {
  display: flex;
  gap: 16px;
}

#social-links a {
  display: inline;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #999;
}

/* Nav buttons */
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.nav-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.nav-btn:active {
  transform: scale(0.97);
}

.nav-btn:hover {
  background: #000;
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.nav-btn:disabled:hover {
  background: #333;
}

.nav-btn--filled {
  background: #000;
  color: #fff;
}

.nav-btn--filled:hover {
  background: #333;
}

.nav-btn--small {
  padding: 10px 16px;
  font-size: 12px;
}

/* Delivery info */
.delivery-info {
  margin-top: 24px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  transition: transform 0.2s ease;
}

.delivery-info p {
  margin-bottom: 4px;
}

.delivery-info p:last-child {
  margin-bottom: 0;
}

/* Section title */
.section-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

/* Category dropdown */
.category-select-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 4px;
  justify-content: center;
}

.cat-chip {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 1;
  min-width: 0;
  flex-shrink: 0;
}

.cat-chip:hover {
  background: #f0f0f0;
}

.cat-chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.category-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Category chips (hidden, kept for reference) */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.category-item {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.category-item:active {
  transform: scale(0.95);
}

.category-item:hover,
.category-item:active {
  background: #000;
  color: #fff;
}

.category-item.active {
  background: #000;
  color: #fff;
}

/* Product list */
.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-card {
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card-img-wrap:hover {
  transform: scale(1.02);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

/* Card multi-image slides */
.card-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 14px;
}

.card-slide.card-slide-active {
  opacity: 1;
  pointer-events: auto;
}

.card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s, transform 0.3s;
}

.card-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fav-btn:active {
  transform: scale(0.85);
}

.fav-btn svg {
  width: 18px;
  height: 18px;
  transition: fill 0.2s, stroke 0.2s;
}

.fav-btn .heart-outline {
  fill: none;
  stroke: #000;
  stroke-width: 2;
}

.fav-btn.favorited .heart-outline {
  fill: #000;
  stroke: #000;
}

/* Cart icon button on card */
.cart-icon-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
}

.cart-icon-btn:hover {
  background: #000;
}

.cart-icon-btn:active {
  transform: scale(0.8);
}

.cart-icon-btn svg {
  width: 18px;
  height: 18px;
}

.cart-icon-btn .cart-icon-path {
  fill: #000;
  transition: fill 0.2s;
}

.cart-icon-btn:hover .cart-icon-path {
  fill: #fff;
}

.product-card-body {
  padding: 4px 2px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card-price {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-card-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stock badge — top-left corner on the image */
.stock-badge--in {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  line-height: 1.3;
}

.card-dims-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 5;
  background: rgba(255,255,255,0.65);
  color: #888;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  line-height: 1.3;
}

.card-size-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.card-size-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 14px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #aaa;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.3px;
}
.card-size-btn:hover {
  border-color: #aaa;
  color: #666;
}
.card-size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 600;
}

/* Center overlay on out-of-stock image */
.stock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  color: #000;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
}

/* Dimmed out-of-stock card */
.product-card--soon {
  opacity: 0.5;
  filter: grayscale(0.35);
  transition: opacity 0.3s, filter 0.3s;
}
.product-card--soon:hover {
  opacity: 0.7;
}
/* Product detail — coming soon */
.product-detail--soon .product-detail-img-wrap,
.product-detail--soon .product-gallery {
  opacity: 0.5;
  filter: grayscale(0.3);
}
.detail-soon-badge {
  text-align: center;
  padding: 14px 20px;
  background: #f5f5f5;
  border: 1.5px dashed #bbb;
  border-radius: 12px;
  color: #777;
  font-size: 15px;
  font-weight: 500;
}

.card-cart-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.card-cart-btn:hover {
  background: #000;
}

.card-cart-btn:active {
  transform: scale(0.96);
}

/* Product detail */
.product-detail {
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.35s ease;
}

.product-detail-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
}

.product-detail-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 16px;
  background: #f5f5f5;
}

.fav-btn--detail {
  width: 44px;
  height: 44px;
  top: 14px;
  right: 14px;
}

.fav-btn--detail svg {
  width: 22px;
  height: 22px;
}

.product-detail-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-price {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
}

.product-detail-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 16px;
}

.product-detail-warning {
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 14px;
  background: #f9f9f9;
  border-left: 3px solid #ccc;
  border-radius: 6px;
  color: #666;
  margin-bottom: 16px;
}

/* Product gallery */
.product-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  width: 100%;
  padding-bottom: 100%;
  height: 0;
}

.gallery-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
}

.gallery-slide .product-detail-img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: none;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery-arrow:hover {
  background: #fff;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-prev::after,
.gallery-next::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
}

.gallery-prev::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.gallery-next::after {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* Size selector */
.size-selector {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 12px;
}

.size-selector-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #444;
}

.size-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #aaa;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: #aaa;
  color: #555;
}

.size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 600;
}

.size-btn:active {
  transform: scale(0.95);
}

.size-info {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

/* Cart size selector */
.cart-size-selector {
  margin: 6px 0 8px;
}

.cart-size-selector .size-btn-row {
  gap: 4px;
}

.cart-size-selector .size-btn {
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 15px;
}

.cart-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.cart-img-size-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  pointer-events: none;
}
.cart-size-fc {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* Legacy flower selector (kept for backward compat) */
.flower-selector {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 12px;
}

.flower-selector-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #444;
}

.flower-select {
  width: 100%;
  padding: 12px 14px;
  padding-right: 40px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='white'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: background 0.2s;
}

.flower-select:focus {
  outline: none;
  background: #000;
}

.card-add-btn {
  width: 100%;
  padding: 8px 0;
  margin-top: auto;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.card-add-btn:active {
  transform: scale(0.96);
}

/* Cart flower selector */
.cart-flower-selector {
  margin: 6px 0 8px;
}

.cart-flower-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.cart-flower-row {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.cart-flower-btn {
  width: 30px;
  height: 28px;
  border: none;
  background: #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.cart-flower-btn:active {
  background: #ddd;
}

.cart-flower-val {
  min-width: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  background: #fff;
}

.product-detail-actions {
  margin-top: 4px;
}

.card-cart-btn--large {
  padding: 14px 20px;
  font-size: 14px;
  border-radius: 12px;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.back-link::before {
  content: '\2190 ';
}

.back-link:hover {
  opacity: 0.6;
  transform: translateX(-3px);
}

/* Cart */
.cart-items {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.cart-items .cart-item {
  margin-bottom: 14px;
}

.cart-items .cart-item:last-child {
  margin-bottom: 0;
}


.cart-item {
  display: flex;
  gap: 18px;
  background: #f9f9f9;
  border-radius: 18px;
  padding: 16px;
  min-height: 220px;
  align-items: flex-start;
  contain: layout style;
}

.cart-item-img,
.cart-item .no-image {
  width: 195px;
  height: 195px;
  min-width: 195px;
  min-height: 195px;
  max-width: 195px;
  max-height: 195px;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
  border-radius: 16px;
  background: #eee;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 195px;
}

.cart-item-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #e0e0e0;
  color: #000;
  font-size: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.qty-btn:active {
  transform: scale(0.85);
}

.qty-btn:hover {
  background: #333;
  color: #fff;
}

.qty-value {
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 12px;
  text-decoration: underline;
  color: #000;
  cursor: pointer;
}

.remove-btn:hover {
  opacity: 0.6;
}

/* Cart total */
/* Cart recommendations */
.cart-rec-section {
  margin: 20px 0 8px;
}
.cart-rec-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.cart-rec-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.cart-rec-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  background: #fff;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  padding: 0;
  transition: opacity 0.15s, border-color 0.15s;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
}
.cart-rec-arrow:hover {
  border-color: #888;
  color: #333;
}
.cart-rec-arrow:active {
  opacity: 0.6;
}
.cart-rec-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.cart-rec-scroll::-webkit-scrollbar {
  display: none;
}
.cart-rec-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}
.cart-rec-card:active {
  transform: scale(0.97);
}
.cart-rec-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.cart-rec-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
}
.cart-rec-name {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 8px 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-rec-price {
  font-size: 11px;
  font-weight: 600;
  padding: 0 8px 8px;
  color: #333;
}
.cart-rec-add {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s;
}
.cart-rec-add:active {
  background: #000;
  color: #fff;
}
.cart-rec-in-cart {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255,255,255,0.92);
  color: #333;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}

.cart-total {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  text-align: right;
}

/* Order summary row */
.order-summary {
  font-size: 13px;
  margin-bottom: 4px;
  text-align: right;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

/* Form */
/* Checkout steps */
.checkout-steps {
  margin-bottom: 24px;
}

.step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ddd;
  background: #fff;
  color: #bbb;
}

.step-dot.active {
  border-color: #000;
  background: #000;
  color: #fff;
  transform: scale(1.1);
}

.step-dot.done {
  border-color: #000;
  background: #fff;
  color: #000;
}

.step-dot.locked {
  border-color: #ddd;
  background: #f5f5f5;
  color: #ccc;
}

.step-num {
  line-height: 1;
}

.step-line {
  flex: 1;
  height: 2px;
  max-width: 60px;
  background: #ddd;
  transition: background 0.3s ease;
}

.step-line.done {
  background: #000;
}

.step-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.step-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #bbb;
  text-align: center;
  flex: 1;
  transition: color 0.3s ease;
}

.step-label.active {
  color: #000;
  font-weight: 600;
}

.step-label.done {
  color: #666;
}

.checkout-panels {
  position: relative;
}

.checkout-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.checkout-panel.active {
  display: flex;
  animation: stepFadeIn 0.35s ease forwards;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-next-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 8px;
}

.step-next-btn:active {
  transform: scale(0.97);
}

.step-back-btn {
  flex: 1;
  padding: 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.step-back-btn:active {
  transform: scale(0.97);
}

.step-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.step-btn-row .step-next-btn {
  flex: 2;
  margin-top: 0;
}

.step-submit-btn {
  background: #000;
  color: #fff;
}

.step-next-btn.btn-dimmed {
  background: #ccc;
  color: #888;
  cursor: default;
}
.step-next-btn.btn-dimmed:active {
  transform: none;
}

.checkout-self-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.checkout-self-btn:active {
  background: #eee;
}

.checkout-self-btn input {
  display: none;
}

.checkout-self-btn.checked {
  background: #e8e8e8;
}

.checkout-self-btn.checked .check-box {
  background: #fff;
  border-color: #000;
  position: relative;
}

.checkout-self-btn.checked .check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nearest-delivery-hint {
  background: #f3f3f3;
  color: #333;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.consent-check {
  margin: 16px 0 8px;
}
.consent-check .checkout-self-btn {
  padding: 12px 14px;
  font-size: 13px;
  background: #fafafa;
}
.consent-check a {
  color: inherit;
}

.cutoff-notice {
  background: #f5f0e0;
  color: #6b5c00;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.cutoff-hint {
  font-size: 13px;
  color: #888;
  padding: 8px 0;
}

.exact-time-section {
  margin: 4px 0 14px;
}

.form-input-date {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #000;
  -webkit-appearance: none;
  appearance: none;
}

.form-input-date:focus {
  outline: none;
  border-color: #000;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  border-radius: 10px;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #000;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.radio-option:active {
  transform: scale(0.98);
}

.radio-option:hover {
  border-color: #000;
}

.radio-option.selected {
  background: #333;
  color: #fff;
  border-color: #333;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.radio-option.selected .radio-dot {
  background: #fff;
}



.radio-option.radio-option-night .night-date-badge {
  display: inline-block;
  background: #555;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
  font-weight: 500;
  white-space: nowrap;
}
.radio-option.radio-option-night.selected .night-date-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Checkbox option */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.checkbox-option:hover {
  border-color: #000;
}

.checkbox-option input[type="checkbox"] {
  display: none;
}

.check-box {
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-option.checked .check-box {
  background: #000;
  border-color: #000;
}

/* Success message */
.success-message {
  text-align: center;
  padding: 40px 0;
}

.success-message p {
  font-size: 14px;
  margin-bottom: 8px;
}

.success-message .order-number {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Account */
.account-section {
  font-size: 14px;
  line-height: 1.6;
}

.account-greeting {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 14px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #eee;
}

.profile-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-crown svg {
  display: block;
}

.admin-badge {
  background: #000;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.admin-panel-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.admin-panel-btn:active {
  opacity: 0.7;
}

#admin-panel-btn-wrap {
  margin-bottom: 20px;
}

.profile-username {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.profile-menu-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  align-self: flex-start;
  position: relative;
  letter-spacing: 2px;
}

.profile-menu {
  position: absolute;
  right: 16px;
  top: 52px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 50;
  min-width: 160px;
  overflow: hidden;
}

.profile-menu button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-menu button:hover {
  background: #f5f5f5;
}

.profile-header {
  position: relative;
}

.profile-section {
  margin-bottom: 20px;
}

.profile-tracking-section {
  background: #f5f5f5;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 24px;
}

.tracking-title {
  font-size: 17px !important;
  font-weight: 800 !important;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-add-btn {
  background: none;
  border: 1px solid #000;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-add-btn:hover {
  background: #000;
  color: #fff;
}

.track-card-mini {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}

.track-order-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
}
.track-detail-row {
  margin-bottom: 4px;
  color: #333;
}
.track-detail-label {
  font-weight: 600;
  color: #000;
}
.track-detail-items-title {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
  color: #000;
}
.track-order-item {
  padding: 3px 0;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
}
.track-order-item:last-child {
  border-bottom: none;
}

.track-card-mini .track-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.track-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.track-status-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.track-total {
  font-size: 16px;
  font-weight: 700;
}

.order-card-mini {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.order-card-mini .order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-mini .order-card-date {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.order-card-mini .order-card-total {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.saved-addr-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.saved-addr-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

.saved-addr-del {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.saved-addr-del:hover {
  color: #f00;
}

.add-addr-form {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
}

.saved-addr-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-addr-chip {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.saved-addr-chip:hover,
.saved-addr-chip.active {
  background: #000;
  color: #fff;
}

/* Order history */
.order-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.order-card-id {
  font-weight: 700;
}

.order-card-status {
  font-weight: 600;
}

.order-card-date {
  font-size: 12px;
  margin-bottom: 6px;
}

.order-card-total {
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}

.order-card-items {
  font-size: 12px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e0e0e0;
}

.order-card-items div {
  margin-bottom: 2px;
}

/* Image placeholder */
.no-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: #f0f0f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #000;
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  text-align: center;
  border-radius: 10px;
  pointer-events: auto;
  animation: toastIn 0.2s ease, toastOut 0.2s ease 2.3s;
  animation-fill-mode: forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Static pages */
.static-page {
  font-size: 13px;
  line-height: 1.7;
}

.static-page h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.static-page p {
  margin-bottom: 10px;
}

/* Delivery tracking timeline */
.track-card {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.track-card:hover {
  transform: translateY(-2px);
}


.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.track-id {
  font-size: 14px;
  font-weight: 700;
}

.track-date {
  font-size: 11px;
  color: #666;
}

.track-amount {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 48px;
  position: relative;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  z-index: 1;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.timeline-step.done .timeline-dot {
  background: #000;
  border-color: #000;
}

.timeline-step.current .timeline-dot {
  background: #000;
  border-color: #000;
  transform: scale(1.3);
}

.timeline-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  color: #bbb;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s;
}

.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
  color: #000;
  font-weight: 600;
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  min-width: 6px;
  margin-top: 4px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.timeline-line.filled {
  background: #000;
}

.track-items {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
}

.track-items div {
  margin-bottom: 2px;
}

.track-delivery-info {
  font-size: 11px;
  color: #666;
  margin-top: 6px;
}

.track-type-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.track-time-info {
  font-size: 12px;
  color: #444;
  margin: 6px 0 2px;
  font-weight: 500;
}

.orders-split-section {
  margin-bottom: 20px;
}

.orders-split-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-split-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
}

/* City overlay */
#city-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.city-overlay-inner {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 32px 24px;
  animation: overlayCardIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

@keyframes overlayCardIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.city-overlay-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 28px;
}

.city-overlay-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.city-card {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: #f5f5f5;
  color: #000;
  border: none;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.15s, color 0.15s;
}

.city-card:hover {
  background: #333;
  color: #fff;
  transform: scale(1.03);
}

.city-card:active {
  transform: scale(1.01);
  background: #000;
  color: #fff;
}

/* Current city indicator */
.city-current {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: #666;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 8px;
  transition: background 0.2s;
}

.city-current:hover {
  background: #eee;
}

/* Responsive */
/* ---- Medium phones (up to 480px) ---- */
@media (max-width: 480px) {
  #app {
    padding: 16px;
  }
  .footer-inner {
    padding: 16px;
  }
  .city-overlay-inner {
    padding: 24px 16px;
  }
  .city-card {
    font-size: 15px;
    padding: 16px 14px;
  }
  .product-list {
    gap: 12px;
  }
  .product-card-name {
    font-size: 12px;
  }
  .product-card-price {
    font-size: 13px;
  }
  .cart-icon-btn {
    width: 32px;
    height: 32px;
  }
  .cart-icon-btn svg {
    width: 16px;
    height: 16px;
  }
  .card-add-btn {
    padding: 6px 0;
    font-size: 11px;
  }
  .cat-chip {
    padding: 6px 12px;
    font-size: 12px;
  }
  .category-select-wrap {
    gap: 5px;
  }
  .tab-btn {
    font-size: 10px;
    padding: 10px 2px;
    letter-spacing: 0.3px;
  }
  .cart-item {
    gap: 14px;
    padding: 14px;
    min-height: 160px;
  }
  .cart-item-img,
  .cart-item .no-image {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    max-width: 140px;
    max-height: 140px;
  }
  .cart-item-info {
    min-height: 140px;
  }
  .cart-item-name {
    font-size: 15px;
  }
  .cart-item-price {
    font-size: 15px;
  }
}

/* ---- Small phones (up to 390px, e.g. iPhone 11, older Android) ---- */
@media (max-width: 390px) {
  #app {
    padding: 12px;
  }
  .cat-chip {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 16px;
  }
  .category-select-wrap {
    gap: 4px;
  }
  .tab-btn {
    font-size: 9px;
    padding: 9px 2px;
    letter-spacing: 0.2px;
  }
  .tab-badge {
    font-size: 8px;
    line-height: 12px;
    min-width: 12px;
    height: 12px;
    padding: 0 3px;
    border-radius: 6px;
  }
  .product-list {
    gap: 10px;
  }
  .product-card-name {
    font-size: 11px;
  }
  .product-card-price {
    font-size: 12px;
  }
  .cart-item {
    gap: 12px;
    padding: 12px;
    min-height: 130px;
    border-radius: 14px;
  }
  .cart-item-img,
  .cart-item .no-image {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    max-width: 110px;
    max-height: 110px;
    border-radius: 12px;
  }
  .cart-item-info {
    min-height: 110px;
  }
  .cart-item-name {
    font-size: 14px;
  }
  .cart-item-price {
    font-size: 14px;
  }
  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .section-title {
    font-size: 18px;
  }
  .category-title {
    font-size: 17px;
  }
  .track-card-mini {
    padding: 14px;
  }
}

/* ---- Very small phones (up to 340px, e.g. old Android, iPhone SE) ---- */
@media (max-width: 340px) {
  #app {
    padding: 10px;
  }
  .cat-chip {
    padding: 4px 8px;
    font-size: 10px;
  }
  .tab-btn {
    font-size: 8px;
    padding: 8px 1px;
  }
  .cart-item {
    gap: 10px;
    padding: 10px;
    min-height: 110px;
  }
  .cart-item-img,
  .cart-item .no-image {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
  }
  .cart-item-info {
    min-height: 90px;
  }
  .cart-item-name {
    font-size: 13px;
  }
  .cart-item-price {
    font-size: 13px;
  }
  .product-list {
    gap: 8px;
  }
}

#delivery-distance-info {
  background: #f7f7f7;
  padding: 8px 12px;
  border-radius: 8px;
  color: #333;
}
#ymaps-minimap {
  border: 1px solid #e0e0e0;
}
[class*="ymaps"][class*="suggest"] {
  z-index: 9999 !important;
}
[class*="ymaps"][class*="suggest-panel"] {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
  overflow: hidden !important;
  padding: 4px 0 !important;
  font-family: inherit !important;
}
[class*="ymaps"][class*="suggest-item"] {
  padding: 11px 16px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: #222 !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f5f5f5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: background 0.12s !important;
  font-family: inherit !important;
}
[class*="ymaps"][class*="suggest-item"]:last-child {
  border-bottom: none !important;
}
[class*="ymaps"][class*="suggest-item"]:hover,
[class*="ymaps"][class*="suggest-item"][class*="active"],
[class*="ymaps"][class*="suggest-item"][class*="selected"] {
  background: #f5f5f5 !important;
}
[class*="ymaps"][class*="suggest-item"] [class*="highlight"] {
  font-weight: 600 !important;
  color: #000 !important;
}

.night-delivery-btn {
  display: block;
  width: 100%;
  margin: 16px 0 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: #f0f0f3;
  border: 1px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s;
}
.night-delivery-btn:active {
  background: #e4e4ea;
}
.night-delivery-btn.active {
  background: #e8e8ee;
  border-color: #bbb;
  color: #333;
}
