/* ── Logo (real brand assets, no extra background) ── */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--vt-text);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 0;
  background: none;
  padding: 0;
  border-radius: 0;
  flex: none;
}

.logo:hover {
  opacity: 1;
  color: var(--vt-text);
}

.logo-img,
.logo-img-sm,
.logo-img-md,
.logo-img-lg {
  display: block;
  width: auto;
  height: 42px;
  max-width: 220px;
  object-fit: contain;
  background: none;
  padding: 0;
}

.logo-sm .logo-img,
.logo-img-sm {
  height: 34px;
  max-width: 170px;
}

.logo-md .logo-img,
.logo-img-md {
  height: 42px;
  max-width: 220px;
}

.logo-lg.logo-bar .logo-img,
.logo-img-lg.logo-img-bar {
  height: 52px;
  max-width: 280px;
}

.logo-lg.logo-stack .logo-img,
.logo-img-lg.logo-img-stack {
  height: 120px;
  max-width: 240px;
}

/* Legacy mark (category tiles etc.) */
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--vt-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}

.logo-mark.lg {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.logo-text {
  font-size: 16px;
}

.app-sidebar-brand .logo {
  max-width: 100%;
  width: auto;
  padding: 0;
  background: none;
  justify-content: flex-start;
}

.app-sidebar-brand .logo-img {
  height: 52px;
  max-width: 100%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--vt-gradient);
  color: #fff;
  box-shadow: var(--vt-shadow-btn);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(240, 70, 106, 0.4);
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--vt-white);
  color: var(--vt-text);
  border: 1.4px solid var(--vt-border);
}

.btn-secondary:hover {
  border-color: rgba(240, 70, 106, 0.4);
  background: #FFF7F9;
  color: var(--vt-text);
  box-shadow: 0 8px 18px rgba(36, 26, 32, 0.07);
}

.btn-ghost {
  background: transparent;
  color: var(--vt-text);
  border: 1.4px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: #fff;
  opacity: 1;
}

.btn-white {
  background: #fff;
  color: var(--vt-pink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  color: var(--vt-pink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 15px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: var(--vt-white);
  border: 1.4px solid var(--vt-border);
  color: var(--vt-text);
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.btn-icon:hover {
  border-color: rgba(240, 70, 106, 0.4);
  color: var(--vt-pink);
  background: #FFF7F9;
  transform: translateY(-1px);
}

.btn-icon.is-active {
  color: var(--vt-pink);
  border-color: rgba(240, 70, 106, 0.35);
  background: rgba(240, 70, 106, 0.08);
}

.btn.is-disabled,
a.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

/* ── Cards ── */
.card {
  background: var(--vt-white);
  border-radius: var(--vt-radius-lg);
  box-shadow: var(--vt-shadow);
}

.card-pad {
  padding: 20px;
}

/* ── Badges / chips ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--vt-radius-pill);
  white-space: nowrap;
}

.badge-pink {
  color: var(--vt-pink);
  background: var(--vt-pink-bg);
}

.badge-orange {
  color: var(--vt-orange-soft);
  background: var(--vt-orange-bg);
}

.badge-green {
  color: var(--vt-green);
  background: var(--vt-green-bg);
}

.badge-dark {
  color: #fff;
  background: var(--vt-text);
}

.badge-grad {
  color: #fff;
  background: var(--vt-gradient);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--vt-radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--vt-white);
  color: var(--vt-muted);
  border: 1.4px solid var(--vt-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover,
.chip.active {
  background: var(--vt-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(240, 70, 106, 0.22);
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  min-width: 0;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--vt-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.4px solid var(--vt-border);
  background: var(--vt-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #E0D0D6;
}

.form-textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--vt-pink);
  box-shadow: 0 0 0 3px rgba(240, 70, 106, 0.12);
}

.form-hint {
  font-size: 12px;
  color: var(--vt-muted);
  font-weight: 500;
}

.addr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addr-card {
  border: 1.4px solid var(--vt-border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--vt-white);
}

.addr-card.addr-pick {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.addr-card.addr-pick:hover {
  border-color: rgba(240, 70, 106, 0.35);
  background: #FFF8FA;
}

.addr-card.is-active,
.addr-card.addr-pick.is-active {
  border-color: var(--vt-pink);
  box-shadow: 0 0 0 3px rgba(240, 70, 106, 0.12);
}

.addr-card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vt-pink);
  margin-bottom: 4px;
}

.addr-card-geo {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.addr-card-phone {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vt-muted);
}

.addr-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.addr-empty {
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-muted);
  line-height: 1.5;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Search ── */
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  background: var(--vt-white);
  border: 1.4px solid var(--vt-border);
  border-radius: 12px;
  color: var(--vt-muted-2);
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box:hover,
.search-box:focus-within {
  border-color: rgba(240, 70, 106, 0.35);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  min-width: 0;
}

/* ── Product card ── */
.product-card {
  border: 1px solid var(--vt-border-2);
  border-radius: var(--vt-radius);
  overflow: hidden;
  background: var(--vt-white);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover:not(.is-soldout) {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(36, 26, 32, 0.1);
  border-color: rgba(240, 70, 106, 0.22);
  opacity: 1;
  color: inherit;
}

.product-card.fade-up:hover:not(.is-soldout) {
  animation: none;
}

.product-card.is-soldout {
  background: #F3F1F2;
  filter: grayscale(0.7);
  box-shadow: none;
}

.product-card.is-soldout:hover {
  transform: none;
  box-shadow: none;
}

.product-card.is-soldout .product-card-img img {
  opacity: 0.55;
}

.product-card.is-soldout:hover .product-card-img img {
  transform: none;
}

.soldout-banner {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  text-align: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(36, 26, 32, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.soldout-note {
  font-size: 12px;
  font-weight: 700;
  color: #8A7E86;
  margin: -4px 0 10px;
}

.soldout-detail {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #8A7E86;
  line-height: 1.45;
}

.cart-stock-error {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: #E11D48;
  line-height: 1.35;
}

.product-card-img {
  height: 168px;
  position: relative;
  background: #F4EBEF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vt-muted-2);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover:not(.is-soldout) .product-card-img img {
  transform: scale(1.06);
}

.product-card-img .badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
}

.product-card-body {
  padding: 14px 14px 16px;
}

.product-ref {
  font-size: 11px;
  color: var(--vt-muted-2);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.product-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--vt-text);
  margin: 6px 0 10px;
  min-height: 42px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-stock {
  font-size: 11px;
  font-weight: 700;
  color: var(--vt-green);
  margin-bottom: 8px;
}

.product-stock.low {
  color: var(--vt-orange-soft);
}

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--vt-pink);
}

.price-deal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.price-was {
  font-size: 13px;
  font-weight: 700;
  color: var(--vt-muted-2);
  text-decoration: line-through;
}

.price-now {
  font-size: 17px;
  font-weight: 800;
  color: var(--vt-pink);
}

.sale-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--vt-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-info .price .price-was {
  font-size: 16px;
  margin-right: 6px;
}

.product-info .price .sale-pill {
  vertical-align: middle;
  margin-left: 6px;
}

.add-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--vt-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--vt-shadow-btn);
  transition: transform 0.15s ease;
}

.add-btn:hover {
  transform: scale(1.06);
  opacity: 1;
  color: #fff;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.wish-btn {
  background: var(--vt-white);
  border: 1.4px solid var(--vt-border);
  color: var(--vt-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product-actions .wish-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
}

#wishBtn.wish-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.wish-btn svg,
.wish-btn svg path {
  fill: none;
  stroke: currentColor;
  transition: fill 0.15s ease, stroke 0.15s ease, transform 0.18s ease;
}

.wish-btn:hover {
  transform: scale(1.06);
  border-color: rgba(240, 70, 106, 0.45);
  color: var(--vt-pink);
}

.wish-btn.is-on {
  color: #ED4956;
  border-color: rgba(237, 73, 86, 0.35);
  background: #fff;
}

.wish-btn.is-on svg,
.wish-btn.is-on svg path,
.btn-icon.is-on svg,
.btn-icon.is-on svg path,
#wishBtn.is-on svg,
#wishBtn.is-on svg path {
  fill: #ED4956;
  stroke: #ED4956;
}

.wish-btn.is-on svg {
  transform: scale(1.08);
  animation: wish-pop 0.35s ease;
}

.btn-icon.is-on,
#wishBtn.is-on {
  color: #ED4956;
  border-color: rgba(237, 73, 86, 0.4);
  background: #fff;
}

@keyframes wish-pop {
  0% { transform: scale(0.45); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1.08); }
}

.grid-4 > .empty-state {
  grid-column: 1 / -1;
}

/* ── Cart badge ── */
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--vt-gradient);
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.cart-count.show {
  display: flex;
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: var(--vt-orange);
  border-radius: 50%;
  border: 2px solid #fff;
}

.notif-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #F0466A;
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

.notif-count.show {
  display: flex;
}

.notif-count-nav {
  position: static;
  margin-left: auto;
  border: none;
}

/* ── Section helpers ── */
.section {
  padding: 64px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 15px;
  color: var(--vt-muted);
  font-weight: 500;
  max-width: 520px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

.catalog-more[hidden] {
  display: none;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-img {
    height: 132px;
  }
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  color: var(--vt-muted-2);
  letter-spacing: 0.3px;
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--vt-border);
}

.data-table td {
  padding: 14px 8px;
  border-bottom: 1px solid #F4EBEF;
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background: #FFF4F7;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--vt-text);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--vt-shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--vt-muted);
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--vt-text);
  margin: 12px 0 6px;
}

.empty-state p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Page header (app) ── */
.page-heading {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.page-sub {
  font-size: 12px;
  color: var(--vt-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Status timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--vt-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vt-border);
  border: 3px solid var(--vt-white);
  box-shadow: 0 0 0 2px var(--vt-border);
}

.timeline-item.done .timeline-dot {
  background: var(--vt-green);
  box-shadow: 0 0 0 2px var(--vt-green-bg);
}

.timeline-item.active .timeline-dot {
  background: var(--vt-pink);
  box-shadow: 0 0 0 2px var(--vt-pink-bg);
}

.timeline-title {
  font-size: 13px;
  font-weight: 800;
}

.timeline-meta {
  font-size: 12px;
  color: var(--vt-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Fade-in motion ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}

.fade-up-delay-1 { animation-delay: 0.08s; }
.fade-up-delay-2 { animation-delay: 0.16s; }
.fade-up-delay-3 { animation-delay: 0.24s; }
.fade-up-delay-4 { animation-delay: 0.32s; }
.fade-up-delay-5 { animation-delay: 0.4s; }
.fade-up-delay-6 { animation-delay: 0.48s; }

a.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(36, 26, 32, 0.1);
  opacity: 1;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
  }
  .btn:hover,
  .product-card:hover,
  .product-card:hover:not(.is-soldout),
  a.card:hover,
  .feature-card:hover,
  .feature-card:hover .feature-icon,
  .chip:hover {
    transform: none;
  }
}
