/* ================= FOOTER (new design) ================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 55px 0 20px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px
}

.footer-logo {
  font: 900 26px 'Axiforma', 'Plus Jakarta Sans', sans-serif
}

.footer-logo span {
  color: var(--accent)
}

.footer p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px
}

.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 15px;
  font-weight: 600;
}

.footer a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0
}

.footer-bottom span {
  font-size: 12px;
}

.footer a:hover {
  color: var(--text)
}

.footer .footer-grid>div:first-child>div[style] {
  color: var(--muted)
}

.footer .footer-grid>div:first-child a {
  display: inline-flex;
  color: var(--muted)
}

.footer .footer-grid>div:first-child a:hover {
  color: var(--accent)
}

.newsletter {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  padding: 11px;
  font-size: 11px
}

.newsletter button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
}

.footer-social a {
  font-size: 16px;
  margin: 9px 5px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px
}

/* ---- toast ---- */
.toast,
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transition: .25s;
  z-index: 2000;
  pointer-events: none
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.new-arrival-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: var(--bg);
  width: 600px;
  max-width: 90%;
  border-radius: 10px;
  text-align: center;
  position: relative;

  /* Animation */
  animation: popupShow 0.5s ease-out;
}

.popup-content img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.new-arrival-popup-image-wrap {
  position: relative;
  display: block;
}

.new-arrival-popup-image-wrap .new-arrival-popup-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  right: -25px;
  top: -15px;
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

.btn {
  display: inline-block;
  margin: 10px;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.btn:hover {
  background: var(--accent2) !important;
}

/* Popup animation */
@keyframes popupShow {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


.close-btn {
  z-index: 10;
  font-weight: 600;
}

.new-arrival-popup-content {
  color: var(--text3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px 16px;
}

.new-arrival-popup-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.new-arrival-popup-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-arrival-popup-prod-name {
  color: var(--text2);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

@media(max-width:768px) {
  .popup-content {
    width: 85%;
  }

  .new-arrival-popup-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px 14px;
  }

  .new-arrival-popup-meta {
    align-items: flex-start;
  }

  .new-arrival-popup-prod-name {
    margin: 0;
    font-size: 0.9rem;
  }

  .btn {
    font-size: 10px;
    margin: 0;
  }
}



/* ================= FOOTER — MOBILE FIX ================= */
@media (max-width: 768px) {
  .footer {
    padding: 35px 0 90px; /* extra bottom padding for fixed bottom nav bar */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-logo {
    font-size: 22px;
  }

  .footer p {
    max-width: 100%;
  }

  .footer h4 {
    margin: 0 0 10px;
    font-size: 13px;
  }

  .footer a {
    margin: 7px 0;
  }

  .newsletter {
    max-width: 320px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 30px;
  }
}



/* ================= BOTTOM MOBILE NAV ================= */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1500;
  }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
  }

  .bottom-nav a i {
    font-size: 19px;
    line-height: 1;
  }

  .bottom-nav a span {
    font-size: 10px;
  }

  .bottom-nav a.active {
    color: var(--accent);
  }

  .bottom-nav a:hover {
    color: var(--accent);
  }
}