/* Announcement bar */
.announce-bar {
  background: linear-gradient(90deg, #0b1f3a, #1a3a5c 40%, #0b1f3a);
  color: #fff;
  overflow: hidden;
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 189, 105, 0.35);
  z-index: 40;
}

.announce-track {
  display: flex;
  width: max-content;
  animation: announce-scroll 32s linear infinite;
  will-change: transform;
}

.announce-bar:hover .announce-track {
  animation-play-state: paused;
}

.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 48px;
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.announce-item strong {
  color: var(--orange);
}

.announce-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.from-left {
  transform: translateX(-36px);
}

.reveal.from-right {
  transform: translateX(36px);
}

.reveal.zoom {
  transform: scale(0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger > *:nth-child(9) { transition-delay: 0.61s; }

/* Hover / float motion */
.card,
.product-item,
.offer-card,
.brand-logo,
.promo-banner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.product-item:hover,
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.promo-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-orange {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243, 168, 71, 0.45);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

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

/* Page chrome */
.page-hero {
  background: linear-gradient(120deg, #131921, #232f3e 55%, #1a3a5c);
  color: #fff;
  padding: 36px 12px;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.82rem;
  color: #aab4bf;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #d6dee6;
}

.breadcrumb a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: #c5d0db;
  max-width: 640px;
}

.page-body {
  max-width: var(--max);
  margin: 20px auto 40px;
  padding: 0 12px;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

.filter-box h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.filter-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 5px 0;
  color: var(--muted);
  cursor: pointer;
}

.filter-box label:hover {
  color: var(--text);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.shop-toolbar select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  background: #fff;
}

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

.shop-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.shop-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}

.shop-card h3 {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 8px;
  min-height: 2.6em;
}

.seller-tag {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 4px 0 8px;
}

.add-btn {
  margin-top: auto;
  width: 100%;
  border: 1px solid #a88734;
  background: linear-gradient(180deg, #f7dfa5, var(--orange-hot));
  border-radius: 20px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.add-btn:hover {
  filter: brightness(0.97);
}

/* Product detail */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.product-gallery {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border);
}

.product-gallery .main-img {
  width: 100%;
  height: 360px;
  object-fit: contain;
}

.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumb-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb-row img.active,
.thumb-row img:hover {
  border-color: var(--orange-hot);
}

.buy-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.buy-box .price {
  font-size: 1.6rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.qty-row select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.stack-btns {
  display: grid;
  gap: 10px;
}

.btn-yellow {
  background: linear-gradient(180deg, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: 20px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-orange-solid {
  background: linear-gradient(180deg, #f7a74a, #f39019);
  border: 1px solid #a88734;
  border-radius: 20px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Cart / checkout / forms */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-table img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.cart-summary,
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-card label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-wrap {
  max-width: 420px;
  margin: 30px auto;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tabs button {
  flex: 1;
  border: 1px solid var(--border);
  background: #f7f8f8;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.tabs button.active {
  background: #fff;
  border-color: var(--orange-hot);
  box-shadow: 0 0 0 2px rgba(254, 189, 105, 0.35);
}

.prose h2 {
  font-size: 1.2rem;
  margin: 22px 0 10px;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 16px 0 8px;
}

.prose p,
.prose li {
  color: #333;
  line-height: 1.65;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.step {
  text-align: center;
  padding: 16px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.step .num {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
}

.empty-state a {
  color: var(--link);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: 0.3s ease;
  z-index: 100;
  font-size: 0.9rem;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .content-grid,
  .product-layout,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .announce-item {
    font-size: 0.78rem;
    padding: 0 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announce-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
