/* ==========================================================================
   FOOTER CSS - Footer và Social Links Styles
   ========================================================================== */

/* Footer Base Styles */
.footer {
  padding: var(--Space-15, 60px);
  background: var(--Background-Global-Secondary, #faf5f0);
  width: 100%;
  margin: 0 auto;
}

.footer .row {
  margin-bottom: var(--Space-10, 40px);
}

.footer .subscribe-email {
  margin-bottom: var(--Space-8, 32px);
}

.footer .row:last-of-type {
  margin-bottom: 0;
}

/* Subscribe Mail Form */
.footer .subscribe-mail-form .form-group {
  display: flex;
  width: 477.39px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-spacer-1-rem, 16px);
}

.footer .subscribe-mail-form .form-group label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  color: var(--On-background-Brand-Default, #231f20);
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Heading-Size-Large, 32px);
  font-style: normal;
  font-weight: var(--Heading-Font-Weight, 700);
  line-height: 130%; /* 41.6px */
}

.footer .subscribe-mail-form .form-group input {
  display: flex;
  width: 477.39px;
  max-width: 480px;
  height: 60px;
  padding: var(--Space-2, 8px) var(--space-spacer-1-rem, 16px);
  justify-content: space-between;
  align-items: center;
  border-radius: var(--Radius-sm, 4px);
  border: 1px solid var(--On-background-Global-Secondary, #bbb3b5);
  color: var(--On-background-Global-Default, #8f888a);
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Body-Size-Medium, 18px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Regular, 400);
  line-height: 150%; /* 27px */
  letter-spacing: -0.18px;
}

.footer .subscribe-mail-form .input-with-icon {
  position: relative;
  width: 100%;
}

.footer .subscribe-mail-form .input-with-icon input {
  box-sizing: border-box;
}

.footer .subscribe-mail-form .input-with-icon img {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 40px;
  cursor: pointer;
  padding: 6px;
  border: var(--Stroke-Border, 1px) solid
    var(--On-background-Global-Secondary, #bbb3b5);
  border-radius: 50%;
}

/* Footer Menu */
.footer .menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Space-5, 20px);
  flex: 1 0 0;
}

.footer .menu span {
  align-self: stretch;
  color: var(--On-background-Brand-Default, #231f20);
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Body-Size-Medium, 18px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Strong, 600);
  line-height: 140%; /* 25.2px */
}

.footer .menu ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-spacer-1-rem, 16px);
  align-self: stretch;
}

.footer .menu ul li {
  align-self: stretch;
}

.footer .menu ul li a {
  color: var(--On-background-Brand-Default, #231f20);
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Body-Size-Medium, 18px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Regular, 400);
  line-height: 150%; /* 27px */
  letter-spacing: -0.18px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.footer .menu ul li a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Footer Bottom Section - Vertical Layout */
.footer .footer-bottom-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-spacer-1-rem, 16px);
}

/* Social Section */
.footer .social-section {
  display: flex;
  flex-direction: column;
  gap: var(--Space-10, 40px);
}

.footer .social-links {
  display: flex;
  align-items: center;
  gap: var(--space-spacer-1-rem, 16px);
}

.footer .social-links li {
  width: 24px;
  height: 24px;
}

.footer .social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Payment Section */
.footer .payment-section {
  display: flex;
  flex-direction: column;
  gap: var(--Space-10, 40px);
}

.footer .payment-icons {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  justify-content: flex-start;
}

.footer .payment-icons img {
  width: 38px;
  height: 24px;
  object-fit: contain;
}

/* Copyright */
.footer .copyright {
  color: rgba(39, 39, 39, 0.7);
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Body-Size-Medium, 18px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Regular, 400);
  line-height: 150%;
  letter-spacing: -0.18px;
}

/* Tablet Responsive */
@media (min-width: 576px) and (max-width: 991px) {
  .footer {
    padding: 40px 20px 60px;
  }

  /* Email Form Typography */
  .footer .subscribe-mail-form .form-group label {
    font-size: 24px;
    height: auto;
  }

  .footer .subscribe-mail-form .form-group input {
    font-size: var(--Body-Size-Medium, 16px);
  }

  /* Menu Typography */
  .footer .menu span {
    font-size: 16px;
    font-weight: var(--Body-Font-Weight-Strong, 600);
  }

  .footer .menu ul li a {
    font-size: 16px;
  }

  /* Footer Menu Grid */
  .footer .footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--Space-10, 40px);
  }

  /* Policy section (3rd item) spans to new row */
  .footer .footer-menu-grid .menu:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* Payment Icons Wrapping */
  .footer .payment-icons {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* Copyright */
  .footer .copyright {
    font-size: 16px;
  }
}

/* Mobile Responsive */
@media (max-width: 575px) {
  .footer {
    padding: 40px 20px 60px;
  }

  /* Email Form Typography Mobile */
  .footer .subscribe-mail-form .form-group label {
    font-size: 24px;
    height: auto;
  }

  .footer .subscribe-mail-form .form-group input {
    font-size: var(--Body-Size-Medium, 16px);
  }

  /* Menu Typography Mobile */
  .footer .menu span {
    font-size: 16px;
    font-weight: var(--Body-Font-Weight-Strong, 600);
  }

  .footer .menu ul li a {
    font-size: 16px;
  }

  /* Footer Menu Grid Mobile */
  .footer .footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--Space-10, 40px);
  }

  /* Policy section (3rd item) spans to new row */
  .footer .footer-menu-grid .menu:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* Mobile Layout Optimization */
  .footer .social-section,
  .footer .payment-section {
    align-items: flex-start;
  }

  .footer .payment-icons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer .subscribe-mail-form .form-group {
    width: 100%;
  }

  .footer .subscribe-mail-form .form-group input {
    width: 100%;
  }

  /* Copyright Mobile */
  .footer .copyright {
    font-size: 16px;
  }
}

/* Desktop Responsive - Footer */
@media (min-width: 992px) {
  /* Payment icons align right on desktop */
  .footer .payment-icons {
    justify-content: flex-end;
  }

  /* Footer Menu Grid Desktop - 3 columns */
  .footer .footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--Space-10, 40px);
  }

  /* Reset policy section span on desktop */
  .footer .footer-menu-grid .menu:nth-child(3) {
    grid-column: auto;
  }
}
