/* ==================  FOOTER CONFIG  ==================
   Tweak these to resize/position the logo.
======================================================= */
:root {
  --nm-footer-logo-size: 180px;
  /* desktop logo box */
  --nm-footer-logo-size-tablet: 140px;
  /* ≤900px */
  --nm-footer-logo-size-mobile: 140px;
  /* ≤700px (bigger now) */
  --nm-footer-logo-shift: 0px;
  /* move right(+) / left(-) on desktop */
}

/* ==================  STICKY FOOTER  ==================
   Ensures footer stays at bottom even on short pages
======================================================= */
html,
body {
  min-height: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

/* All direct children of body that aren't footer should not shrink */
body>* {
  flex-shrink: 0;
}

/* Main content wrapper should grow to fill available space */
body>main,
body>.main-content-wrapper,
body>.catalog-section,
body>.profile-container,
body>.page-content,
body>div:not(.custom-navbar):not(.cart-sidebar):not(.cart-overlay):not(#modalOverlay):not(#mobile-menu):not(#mobile-menu-backdrop):not(.wishlist-sidebar):not(.wishlist-overlay) {
  flex: 1 0 auto;
}

/* Footer and its sections - always at bottom */
footer,
section.footer-modern,
.footer-modern,
.contact-footer-section {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  width: 100%;
}

/* -------- Contact Footer Section -------- */
.contact-footer-section {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  left: 0;
  right: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  background: #b39a7b;
  min-height: 1px;
  box-shadow: none !important;
  overflow: visible;
  z-index: 10;
}

@media (max-width: 1080px) {
  .contact-footer-section {
    flex-direction: column;
    border-radius: 0 !important;
    max-width: 100vw !important;
  }

  .contact-map {
    border-radius: 0 !important;
    min-width: 0;
  }

  .footer-bottom-info {
    flex-direction: column;
    gap: 22px;
    margin-left: 24px;
  }
}

@media (max-width: 700px) {
  .contact-footer-section {
    flex-direction: column;
    padding: 0 !important;
  }

  .contact-map {
    border-radius: 0 !important;
  }

  .footer-bottom-info {
    margin-left: 10px;
  }
}

/* ---------- Main Footer ---------- */
.footer-modern {
  width: 100vw;
  position: relative;
  background: transparent;
  margin: 0;
  margin-top: 80px;
  padding: 0;
}

.footer-bg {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 100%;
  background: url('image/navbar.jpg') center/cover no-repeat;
  filter: blur(3px) brightness(0.85);
  z-index: 0;
}

.footer-content {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 50px;
  padding: 55px 7vw 30px 7vw;
  z-index: 2;
  color: #fff;
}

.footer-col {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.logo-col {
  min-width: 320px;
  max-width: 400px;
}

.footer-brand-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
}

/* === Logo wrapper — size & horizontal offset (strong overrides) === */
section.footer-modern .footer-content .logo-col .footer-brand-row .footer-logo-wrap {
  width: var(--nm-footer-logo-size) !important;
  height: var(--nm-footer-logo-size) !important;
  min-width: var(--nm-footer-logo-size) !important;
  min-height: var(--nm-footer-logo-size) !important;
  flex: 0 0 var(--nm-footer-logo-size) !important;
  /* prevent shrinking */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  /* Move left/right reliably */
  transform: translateX(var(--nm-footer-logo-shift)) !important;
}

/* Logo image fills the wrapper neatly (strong overrides) */
section.footer-modern .footer-content .logo-col .footer-brand-row .footer-logo-wrap .footer-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
}

/* Brand text next to the logo */
.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 170px;
}

.footer-brand {
  font-size: 2.1rem;
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  color: #fff;
}

.footer-address {
  font-size: 1rem;
  color: #f4eee5;
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-copy {
  display: block;
  width: 100%;
  margin: 28px auto 0 auto;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer-title {
  font-size: 1.13em;
  font-weight: bold;
  letter-spacing: 0.11em;
  margin-bottom: 8px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  opacity: 0.94;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #f5cb94;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
    padding: 35px 3vw 20px 3vw;
    align-items: flex-start;
  }

  .logo-col {
    min-width: 0;
    max-width: 100vw;
  }

  section.footer-modern .footer-content .logo-col .footer-brand-row .footer-logo-wrap {
    width: var(--nm-footer-logo-size-tablet) !important;
    height: var(--nm-footer-logo-size-tablet) !important;
    min-width: var(--nm-footer-logo-size-tablet) !important;
    min-height: var(--nm-footer-logo-size-tablet) !important;
    flex: 0 0 var(--nm-footer-logo-size-tablet) !important;
    transform: translateX(0) !important;
    /* reset shift by default on tablet */
  }
}

/* ======= MOBILE (center everything hard) ======= */
@media (max-width: 700px) {

  /* Center columns & text */
  .footer-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 24px !important;
  }

  .footer-col,
  .footer-col.logo-col {
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* The key part: center brand row + logo wrapper */
  section.footer-modern .footer-content .logo-col .footer-brand-row {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
  }

  section.footer-modern .footer-content .logo-col .footer-brand-row .footer-logo-wrap {
    width: var(--nm-footer-logo-size-mobile) !important;
    height: var(--nm-footer-logo-size-mobile) !important;
    min-width: var(--nm-footer-logo-size-mobile) !important;
    min-height: var(--nm-footer-logo-size-mobile) !important;
    flex: 0 0 var(--nm-footer-logo-size-mobile) !important;
    transform: translateX(0) !important;
    /* kill any desktop shift */
    margin: 0 auto !important;
    /* ensure true centering */
  }

  .footer-brand-text {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-social {
    justify-content: center !important;
  }
}

/* Social */
.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: #cfb998;
  transform: scale(1.18);
}

/* Extra small tweaks */
@media (max-width: 800px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-col.logo-col {
    align-items: center;
    text-align: center;
  }

  .footer-copy {
    font-size: 0.89rem;
    white-space: normal;
    margin-top: 18px;
    padding: 0 8vw;
  }
}