/* Top announce strip + cart + buy box */

:root {
  --strip-h: 32px;
  --bar-h: 68px;
}

html.has-announce-strip {
  --nav-h: calc(var(--bar-h) + var(--strip-h));
}

html.has-announce-strip .site-header,
html.has-announce-strip header.site-header {
  top: var(--strip-h) !important;
  height: var(--bar-h) !important;
  min-height: var(--bar-h) !important;
}

.announce-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5100;
  height: var(--strip-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 2.5rem 0 1rem;
  background: #0b1f33;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

.announce-strip strong {
  color: #7ee0e0;
  font-weight: 800;
}

.announce-strip a {
  color: #7ee0e0;
  text-decoration: underline;
}

.announce-strip__close {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  z-index: 2;
}

/* Desktop: keep one cart in the right-hand menu, not beside the logo */
@media (min-width: 1121px) {
  .header-tools {
    display: none !important;
  }
}

.nav-cart {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 700 !important;
  color: #0b1f33 !important;
  white-space: nowrap;
}

.nav-cart svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #0f5d73;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
}

.product-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0b1f33;
  letter-spacing: -0.03em;
}

.product-price s {
  margin-left: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: #9ca3af;
}

.product-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #dce5ec;
  border-radius: 8px;
  overflow: hidden;
  height: 46px;
}

.product-qty button {
  width: 42px;
  height: 46px;
  border: 0;
  background: #f5f8fa;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1f33;
}

.product-qty input {
  width: 52px;
  height: 46px;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.btn-cart {
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: #0f5d73;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn-cart:hover {
  background: #00a6a6;
}

.btn-cart.is-added {
  background: #0b1f33;
}

.card-cart-btn {
  margin: 0 1.1rem 1.1rem;
  width: calc(100% - 2.2rem);
  min-height: 42px;
  border: 1.5px solid #0f5d73;
  background: #fff;
  color: #0f5d73;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.card-cart-btn:hover,
.card-cart-btn.is-added {
  background: #0f5d73;
  color: #fff;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(12px);
  background: #0b1f33;
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 6000;
  transition: opacity 0.25s, transform 0.25s;
}

.cart-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eef2f5;
  vertical-align: middle;
}

.cart-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f5f8fa;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f8fa;
}

.cart-remove {
  border: 0;
  background: none;
  color: #b42318;
  font-weight: 700;
  cursor: pointer;
}

.cart-empty {
  padding: 2rem 0;
  color: #6b7280;
}

.cart-totals {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cart-totals strong {
  font-size: 1.25rem;
}

.trust-strip--global {
  margin-top: 0;
}

@media (max-width: 1120px) {
  :root {
    --bar-h: 72px;
  }

  .header-tools {
    order: 2;
  }

  .nav-toggle {
    margin-left: 0;
  }

  .nav-links .nav-cart {
    display: none !important;
  }
}

@media (max-width: 760px) {
  :root {
    --bar-h: 62px;
    --strip-h: 40px;
  }

  .announce-strip {
    font-size: 0.72rem;
    padding-inline: 0.75rem 2.2rem;
    letter-spacing: 0.02em;
  }

  .product-buy {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cart,
  .product-qty {
    width: 100%;
    justify-content: center;
  }

  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    display: none;
  }
}
