/* ==========================================================================
   webshop_theme — footer.css
   Custom footer styles — applied globally on all pages.
   ========================================================================== */

/* Hide Frappe's default footer */
footer.web-footer {
  display: none !important;
}

.i2-footer {
  background: #131921;
  color: rgba(255,255,255,0.72);
  font-size: 0.875rem;
  line-height: 1.6;
}

.i2-footer__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
}

.i2-footer__head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 18px;
}

.i2-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.i2-footer__logo-text {
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
}

.i2-footer__logo-text strong {
  font-weight: 800;
  color: #FACE68;
}

.i2-footer__tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 240px;
}

.i2-footer__socials {
  display: flex;
  gap: 10px;
}

.i2-footer__social {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.i2-footer__social:hover {
  border-color: #FACE68;
  color: #FACE68;
  background: rgba(250,206,104,0.1);
}

.i2-footer__address {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.i2-footer__addr-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.83rem;
  line-height: 1.55;
}

.i2-footer__addr-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #0891B2;
}

.i2-footer__addr-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.i2-footer__addr-link:hover {
  color: #FACE68;
}

.i2-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.i2-footer__links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s, gap 0.15s;
}

.i2-footer__links a:hover {
  color: #FACE68;
  gap: 10px;
}

.i2-footer__links a::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  color: #0891B2;
  flex-shrink: 0;
}

.i2-footer__sub-text {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin: 0 0 18px;
  line-height: 1.6;
}

.i2-footer__sub-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.i2-footer__sub-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0;
  padding: 11px 14px;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.i2-footer__sub-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.i2-footer__sub-input:focus {
  border-color: #0891B2;
}

.i2-footer__sub-btn {
  width: 100%;
  background: #FACE68;
  color: #78350F;
  border: none;
  border-radius: 0;
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s;
}

.i2-footer__sub-btn:hover {
  background: #e8924e;
}

.i2-footer__sub-msg {
  font-size: 0.78rem;
  min-height: 16px;
  margin-top: -2px;
}

.i2-footer__sub-msg--ok  { color: #34d399; }
.i2-footer__sub-msg--err { color: #f87171; }

.i2-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.i2-footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.i2-footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.i2-footer__copy a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

.i2-footer__copy a:hover { color: #FACE68; }

.i2-footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.i2-footer__legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.i2-footer__legal a:hover { color: #FACE68; }

@media (max-width: 1024px) {
  .i2-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .i2-footer__main {
    grid-template-columns: 1fr;
    padding: 48px 20px 36px;
    gap: 32px;
  }
  .i2-footer__bottom-inner {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .i2-footer__tagline { max-width: 100%; }
}
