/* ===================================================== */
/* FOOTER                                                */
/* CSS dùng cho phần cuối trang của website Seoul Soul.  */
/* Có 2 kiểu footer: footer sáng mặc định và footer tối. */
/* ===================================================== */


/* ===================================================== */
/* FOOTER BASE                                           */
/* Footer mặc định nền sáng, dùng ở phần lớn các trang.  */
/* ===================================================== */

.site-footer {
  position: relative;
  border-top: 1px solid rgba(91, 61, 44, 0.12);
  background: rgba(249, 242, 232, 0.78);
}


/* ===================================================== */
/* FOOTER LAYOUT                                         */
/* Lưới chính bên trong footer.                          */
/* Desktop chia thành 5 cột thông tin.                   */
/* ===================================================== */

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.1fr 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  width: min(1280px, calc(100% - 72px));
  min-height: 118px;
  margin: 0 auto;
}


/* ===================================================== */
/* FOOTER BRAND                                          */
/* Tên/logo chữ trong footer.                            */
/* ===================================================== */

.footer-logo-title {
  color: var(--color-terracotta-dark);
  font-size: 29px;
  line-height: 0.9;
}


/* ===================================================== */
/* FOOTER CELL                                           */
/* Mỗi ô thông tin trong footer: địa chỉ, giờ mở cửa...  */
/* ===================================================== */

.footer-cell {
  display: grid;
  gap: 8px;
  min-height: 56px;
  padding-left: 22px;
  border-left: 1px solid rgba(91, 61, 44, 0.12);
  color: var(--color-muted);
  font-size: 12px;
}

/* Tiêu đề nhỏ trong mỗi ô footer */
.footer-cell strong {
  color: var(--color-ink);
  font-size: 13px;
}


/* ===================================================== */
/* SOCIAL LINKS                                          */
/* Các nút mạng xã hội trong footer.                     */
/* ===================================================== */

.socials {
  display: flex;
  gap: 10px;
}

/* Mỗi icon mạng xã hội là một nút tròn */
.socials a {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--color-white);
  background:
    linear-gradient(
      180deg,
      var(--color-terracotta),
      var(--color-terracotta-dark)
    );
  box-shadow: 0 7px 16px rgba(170, 63, 34, 0.22);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.socials a {
  font-size: 0;
}

.socials a:hover,
.socials a:focus-visible {
  box-shadow: 0 9px 20px rgba(164, 58, 28, 0.28);
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.socials a::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  content: "";
  background: currentColor;
  transform: translate(-50%, calc(-50% + 1px));
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.socials a[aria-label="Instagram"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2C4.2 2 2 4.2 2 7v10c0 2.8 2.2 5 5 5h10c2.8 0 5-2.2 5-5V7c0-2.8-2.2-5-5-5H7zm10 2c1.7 0 3 1.3 3 3v10c0 1.7-1.3 3-3 3H7c-1.7 0-3-1.3-3-3V7c0-1.7 1.3-3 3-3h10zm-5 3a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm5.5-3a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2C4.2 2 2 4.2 2 7v10c0 2.8 2.2 5 5 5h10c2.8 0 5-2.2 5-5V7c0-2.8-2.2-5-5-5H7zm10 2c1.7 0 3 1.3 3 3v10c0 1.7-1.3 3-3 3H7c-1.7 0-3-1.3-3-3V7c0-1.7 1.3-3 3-3h10zm-5 3a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm5.5-3a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/%3E%3C/svg%3E");
}

.socials a[aria-label="Facebook"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V4h-3c-3.3 0-5 2-5 5v3H6v4h3v8h4v-8h3.5l.5-4h-4V9c0-.7.3-1 1-1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V4h-3c-3.3 0-5 2-5 5v3H6v4h3v8h4v-8h3.5l.5-4h-4V9c0-.7.3-1 1-1z'/%3E%3C/svg%3E");
}

.socials a[aria-label="TikTok"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3c.5 2.8 2.1 4.5 5 5v4c-2 0-3.7-.6-5-1.7V17a7 7 0 1 1-6-6.9v4.2A3 3 0 1 0 12 17V3h3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3c.5 2.8 2.1 4.5 5 5v4c-2 0-3.7-.6-5-1.7V17a7 7 0 1 1-6-6.9v4.2A3 3 0 1 0 12 17V3h3z'/%3E%3C/svg%3E");
}


/* ===================================================== */
/* FOOTER LINKS                                          */
/* Các link phụ như Impressum, Datenschutz...            */
/* ===================================================== */

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links button:hover,
.footer-links button:focus-visible {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-quick-actions {
  display: none;
}


/* ===================================================== */
/* FOOTER DARK VARIANT                                   */
/* Phiên bản footer nền tối, dùng cho trang cần nổi bật. */
/* Chỉ cần thêm class .footer-dark vào .site-footer.     */
/* ===================================================== */

.footer-dark {
  color: rgba(255, 250, 242, 0.82);
  background:
    linear-gradient(
      90deg,
      rgba(33, 17, 7, 0.98),
      rgba(66, 37, 22, 0.96)
    ),
    var(--img-contact);
  background-position: center bottom;
  background-size: cover;
}

/* Layout riêng cho footer tối: ít cột hơn, cao hơn */
.footer-dark .footer-inner {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  min-height: 260px;
  align-items: start;
  padding: 46px 0;
}

/* Ô thông tin trong footer tối */
.footer-dark .footer-cell {
  border-left-color: rgba(255, 250, 242, 0.18);
  color: rgba(255, 250, 242, 0.72);
}

/* Đổi màu chữ/icon sang trắng trong footer tối */
.footer-dark strong,
.footer-dark .footer-logo-title,
.footer-dark .socials a,
.footer-dark .footer-links {
  color: var(--color-white);
}


/* ===================================================== */
/* TABLET RESPONSIVE                                     */
/* Footer chuyển từ nhiều cột sang 2 cột trên tablet.    */
/* ===================================================== */

@media (max-width: 980px) {
  .footer-inner,
  .footer-dark .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, calc(100% - 34px));
    padding: 30px 0;
  }
}


/* ===================================================== */
/* MOBILE RESPONSIVE                                     */
/* Footer xếp thành 1 cột trên điện thoại.               */
/* Bỏ đường kẻ dọc, đổi thành đường kẻ ngang.            */
/* ===================================================== */

@media (max-width: 640px) {
  .site-footer {
    background:
      linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(247, 238, 226, 0.96));
  }

  .footer-inner,
  .footer-dark .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, calc(100% - 28px));
    min-height: 0;
    padding: 24px 0 18px;
  }

  .footer-inner > .logo {
    grid-column: 1 / -1;
    justify-content: center;
    margin-bottom: 2px;
  }

  .footer-inner > .logo .logo-img {
    width: 224px;
    max-height: 120px;
  }

  .footer-quick-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .footer-quick-actions a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 5px;
    border: 1px solid rgba(164, 58, 28, 0.16);
    border-radius: 999px;
    color: var(--color-terracotta-dark);
    background: rgba(255, 250, 243, 0.9);
    box-shadow: 0 8px 22px rgba(71, 38, 20, 0.06);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .footer-quick-actions a:last-child {
    color: var(--color-white);
    border-color: var(--color-terracotta-dark);
    background: var(--color-terracotta-dark);
  }

  .footer-action-icon {
    font-size: 14px;
    line-height: 1;
  }

  .footer-cell {
    gap: 5px;
    min-height: 0;
    padding: 12px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
    line-height: 1.55;
  }

  .footer-cell strong {
    font-size: 13px;
    line-height: 1.4;
  }

  .footer-inner > .footer-cell:nth-of-type(3) {
    padding-left: 16px;
    border-left: 1px solid rgba(91, 61, 44, 0.12);
  }

  .footer-inner > .footer-cell:nth-of-type(4),
  .footer-inner > .footer-cell:nth-of-type(5) {
    grid-column: 1 / -1;
  }

  .footer-inner > .footer-cell:nth-of-type(4) {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(91, 61, 44, 0.1);
    border-bottom: 1px solid rgba(91, 61, 44, 0.1);
    text-align: center;
  }

  .footer-inner > .footer-cell:nth-of-type(5) {
    align-items: center;
    justify-items: center;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
    text-align: center;
  }

  .socials {
    justify-content: center;
    gap: 6px;
  }

  .socials a {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    letter-spacing: 0;
  }

  .socials a::before {
    width: 19px;
    height: 19px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 10px;
  }

  .footer-dark .footer-quick-actions a {
    border-color: rgba(255, 250, 242, 0.2);
    color: var(--color-white);
    background: rgba(255, 250, 242, 0.08);
  }

  .footer-dark .footer-quick-actions a:last-child {
    color: var(--color-brown);
    background: var(--color-white);
  }
}

/* ===================================================== */
/* COOKIE CONSENT                                       */
/* Banner and detailed first-party statistics settings. */
/* ===================================================== */

.marketing-consent [hidden] {
  display: none !important;
}

.marketing-consent__banner {
  position: fixed;
  z-index: 10000;
  right: 0;
  bottom: 0;
  left: 0;
  color: #fff;
  background: #050505;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.22);
  font-family: Arial, sans-serif;
}

.marketing-consent__banner-inner {
  position: relative;
  display: flex;
  width: min(1500px, calc(100% - 48px));
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
  padding: 20px 42px 20px 0;
}

.marketing-consent__copy {
  max-width: 900px;
}

.marketing-consent__copy strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
}

.marketing-consent__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.48;
}

.marketing-consent__copy a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.marketing-consent__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.marketing-consent__button {
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 700 14px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.marketing-consent__button:focus-visible,
.marketing-consent__banner-close:focus-visible,
.marketing-consent__dialog-close:focus-visible,
.marketing-consent__switch input:focus-visible + i {
  outline: 3px solid #d86a42;
  outline-offset: 3px;
}

.marketing-consent__button--settings,
.marketing-consent__button--decline {
  border-color: rgba(255, 255, 255, 0.86);
  color: #fff;
  background: transparent;
}

.marketing-consent__button--settings:hover,
.marketing-consent__button--decline:hover {
  color: #111;
  background: #fff;
}

.marketing-consent__button--accept {
  border-color: #fff;
  color: #111;
  background: #fff;
}

.marketing-consent__button--accept:hover {
  background: #f1e8df;
}

.marketing-consent__banner-close,
.marketing-consent__dialog-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: 300 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.marketing-consent__banner-close {
  position: absolute;
  top: 50%;
  right: -8px;
  color: #fff;
  transform: translateY(-50%);
}

.marketing-consent__overlay {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 18, 15, 0.68);
  backdrop-filter: blur(4px);
}

.marketing-consent__dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(780px, calc(100dvh - 48px));
  overflow: hidden;
  color: #25211f;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  font-family: Arial, sans-serif;
}

.marketing-consent__dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px 23px;
  border-bottom: 1px solid #e5e1dd;
}

.marketing-consent__dialog-header span {
  display: block;
  margin-bottom: 5px;
  color: #9c4930;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marketing-consent__dialog-header h2 {
  margin: 0;
  color: #171311;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
}

.marketing-consent__dialog-close {
  flex: 0 0 auto;
  color: #332d29;
}

.marketing-consent__dialog-body {
  overflow-y: auto;
  padding: 26px 30px 12px;
}

.marketing-consent__intro {
  margin: 0 0 24px;
  color: #554d48;
  font-size: 14px;
  line-height: 1.6;
}

.marketing-consent__category {
  padding: 22px 0;
  border-top: 1px solid #e5e1dd;
}

.marketing-consent__category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.marketing-consent__category-heading h3 {
  margin: 0 0 5px;
  color: #211d1a;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.marketing-consent__category-heading span {
  color: #7a706a;
  font-size: 12px;
  font-weight: 700;
}

.marketing-consent__category > p,
.marketing-consent__category details p,
.marketing-consent__category-note {
  color: #554d48;
  font-size: 14px;
  line-height: 1.55;
}

.marketing-consent__category > p {
  margin: 15px 0 0;
}

.marketing-consent__category details {
  margin-top: 13px;
}

.marketing-consent__category summary {
  width: fit-content;
  color: #71351f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.marketing-consent__category details p {
  margin: 9px 0 0;
  padding: 12px 14px;
  background: #f8f4ef;
}

.marketing-consent__category-note {
  margin: 4px 0 12px;
  padding: 14px 16px;
  border-left: 3px solid #b65a3b;
  background: #fbf7f2;
}

.marketing-consent__switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  flex: 0 0 auto;
}

.marketing-consent__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.marketing-consent__switch i {
  position: absolute;
  inset: 0;
  border: 1px solid #aba6a2;
  border-radius: 999px;
  background: #b8b6b4;
  transition: background 160ms ease, border-color 160ms ease;
}

.marketing-consent__switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease;
}

.marketing-consent__switch input:checked + i,
.marketing-consent__switch--locked i {
  border-color: #803c27;
  background: #9c4930;
}

.marketing-consent__switch input:checked + i::after,
.marketing-consent__switch--locked i::after {
  transform: translateX(28px);
}

.marketing-consent__dialog-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px 30px;
  border-top: 1px solid #e5e1dd;
  background: #fff;
}

.marketing-consent__dialog-footer .marketing-consent__button {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
}

.marketing-consent__button--light {
  border-color: #2c2724;
  color: #2c2724;
  background: #fff;
}

.marketing-consent__button--save {
  border-color: #9c4930;
  color: #71351f;
  background: #fff8f3;
}

.marketing-consent__button--dark {
  border-color: #161210;
  color: #fff;
  background: #161210;
}

.marketing-consent__button--light:hover,
.marketing-consent__button--save:hover {
  background: #f2ece6;
}

.marketing-consent__button--dark:hover {
  background: #493b34;
}

body.has-marketing-consent-modal {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .marketing-consent__banner-inner {
    width: min(100%, calc(100% - 32px));
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 20px 44px 20px 0;
  }

  .marketing-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketing-consent__banner-close {
    top: 14px;
    right: -6px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .marketing-consent__banner-inner {
    width: 100%;
    gap: 14px;
    padding: 18px 18px 16px;
  }

  .marketing-consent__copy {
    padding-right: 34px;
  }

  .marketing-consent__copy strong {
    font-size: 16px;
  }

  .marketing-consent__copy p {
    font-size: 12.5px;
  }

  .marketing-consent__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .marketing-consent__button {
    min-height: 42px;
  }

  .marketing-consent__banner-close {
    top: 12px;
    right: 12px;
  }

  .marketing-consent__overlay {
    align-items: end;
    padding: 0;
  }

  .marketing-consent__dialog {
    width: 100%;
    max-height: 94dvh;
  }

  .marketing-consent__dialog-header {
    padding: 20px 18px 17px;
  }

  .marketing-consent__dialog-body {
    padding: 20px 18px 8px;
  }

  .marketing-consent__category {
    padding: 19px 0;
  }

  .marketing-consent__category-heading {
    gap: 14px;
  }

  .marketing-consent__category-heading h3 {
    font-size: 17px;
  }

  .marketing-consent__category > p,
  .marketing-consent__category details p,
  .marketing-consent__category-note,
  .marketing-consent__intro {
    font-size: 13px;
  }

  .marketing-consent__dialog-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
  }
}
