/* =========================================================
   HEART-VIBE
   HEADER + FOOTER RESPONSIVE
========================================================= */

/* =========================================================
   FONT
========================================================= */

:root {
  --font-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;

  --font-heading: "Playfair Display", Georgia, serif;

  --pink: #df6876;
  --pink-soft: #f9e9e7;
  --pink-light: #fff6f5;

  --text: #393532;
  --text-soft: #6f6964;
  --text-light: #928a84;

  --border: #eee8e2;

  --footer-bg: #fbf5ef;
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background: #fcfaf7;

  color: var(--text);

  font-family: var(--font-body);

  font-size: 14px;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font-family: var(--font-body);
}

/* =========================================================
   HEADER
========================================================= */
.logo img {
  width: 160px;
  height: auto;
  display: block;
}

.header {
  width: 100%;

  background: #ffffff;

  border-bottom: 1px solid var(--border);

  position: sticky;

  top: 0;

  z-index: 1000;
}

/* =========================================================
   HEADER INNER
========================================================= */

.header-inner {
  width: 100%;
  max-width: 1280px;

  height: 76px;

  margin: 0 auto;

  padding: 0 32px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
  display: flex;

  align-items: center;

  gap: 8px;

  white-space: nowrap;

  color: #302c29;

  font-family: var(--font-heading);

  font-size: 21px;

  font-weight: 500;

  line-height: 1;
}

.logo .heart {
  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--pink);

  font-size: 22px;

  line-height: 1;
}

.logo .heart i {
  font-weight: 400;
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav {
  display: flex;

  align-items: center;

  gap: 34px;
}

.nav a {
  position: relative;

  display: flex;

  align-items: center;

  gap: 5px;

  min-height: 40px;

  color: #57514d;

  font-size: 13px;

  font-weight: 400;

  line-height: 1;

  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--pink);
}

.nav a i {
  font-size: 8px;
}

.nav a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: -18px;

  height: 2px;

  background: var(--pink);

  border-radius: 2px;
}

/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
  display: flex;

  align-items: center;

  gap: 18px;
}

.header-actions button,
.header-actions a {
  position: relative;

  width: 26px;
  height: 26px;

  padding: 0;

  border: none;

  background: transparent;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #4e4945;

  font-size: 14px;

  cursor: pointer;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.header-actions button:hover,
.header-actions a:hover {
  color: var(--pink);

  transform: translateY(-1px);
}

/* =========================================================
   CART COUNT
========================================================= */

.cart-count {
  position: absolute;

  top: -5px;
  right: -6px;

  width: 15px;
  height: 15px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e56f7c;

  color: #ffffff;

  font-family: var(--font-body);

  font-size: 8px;

  font-weight: 600;

  line-height: 1;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {
  display: none;

  width: 34px;
  height: 34px;

  padding: 0;

  border: none;

  background: transparent;

  color: #57514d;

  font-size: 15px;

  cursor: pointer;
}

/* =========================================================
   TABLET HEADER
========================================================= */

@media (max-width: 1000px) {
  .header-inner {
    height: 68px;

    padding: 0 24px;
  }

  .nav {
    gap: 24px;
  }

  .nav a {
    font-size: 12.5px;
  }

  .header-actions {
    gap: 14px;
  }
}

/* =========================================================
   MOBILE HEADER
========================================================= */

@media (max-width: 768px) {
  .header {
    height: 56px;
  }

  .header-inner {
    height: 56px;

    padding: 0 14px;

    position: relative;
  }

  /* =========================
       MENU BUTTON
    ========================= */

  .menu-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    font-size: 15px;

    z-index: 1002;
  }

  /* =========================
       LOGO
    ========================= */

  .logo {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    gap: 5px;

    font-family: var(--font-heading);

    font-size: 16px;

    font-weight: 500;
  }

  .logo .heart {
    font-size: 17px;
  }

  /* =========================
       ACTIONS
    ========================= */

  .header-actions {
    margin-left: auto;

    gap: 10px;
  }

  .header-actions button,
  .header-actions a {
    width: 28px;
    height: 28px;

    font-size: 13px;
  }

  .cart-count {
    top: -3px;
    right: -4px;

    width: 13px;
    height: 13px;

    font-size: 7px;
  }

  /* =========================
       MOBILE NAV
    ========================= */

  .nav {
    position: absolute;

    top: 56px;

    left: 0;
    right: 0;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 8px 14px 12px;

    background: #ffffff;

    border-top: 1px solid #f3eee9;

    border-bottom: 1px solid #eee8e2;

    box-shadow: 0 10px 25px rgba(60, 45, 35, 0.08);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;

    z-index: 1001;
  }

  /* =========================
       NAV OPEN
    ========================= */

  .header.menu-open .nav {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
  }

  /* =========================
       NAV ITEM
    ========================= */

  .nav a {
    width: 100%;

    min-height: 46px;

    padding: 0 12px;

    display: flex;

    align-items: center;

    border-bottom: 1px solid #f4efeb;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 400;

    color: #4f4a46;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a.active {
    color: var(--pink);

    background: var(--pink-light);
  }

  .nav a.active::after {
    display: none;
  }

  .nav a i {
    margin-left: auto;

    font-size: 8px;
  }
}

/* =========================================================
   SMALL MOBILE HEADER
========================================================= */

@media (max-width: 400px) {
  .header-inner {
    padding: 0 10px;
  }

  .logo {
    font-size: 15px;
  }

  .logo .heart {
    font-size: 16px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions button,
  .header-actions a {
    width: 26px;
    height: 26px;

    font-size: 12px;
  }
}

/* =========================================================
   FOOTER
========================================================= */

.hv-footer {
  width: 100%;

  margin-top: auto;

  background: var(--footer-bg);

  border-top: 1px solid rgba(150, 120, 100, 0.07);

  color: #514b47;

  font-family: var(--font-body);
}

/* =========================================================
   FOOTER INNER
========================================================= */

.hv-footer-inner {
  position: relative;

  width: 100%;

  max-width: 1200px;

  min-height: 190px;

  margin: 0 auto;

  padding: 34px 150px 30px 32px;

  display: grid;

  grid-template-columns:
    1.35fr
    1fr
    1fr
    1.2fr;

  column-gap: 42px;
}

/* =========================================================
   FOOTER BRAND
========================================================= */

.hv-footer-brand {
  padding-top: 1px;
}

.hv-logo {
  display: flex;

  align-items: center;

  gap: 7px;

  color: var(--pink);

  font-family: var(--font-body);

  font-size: 21px;

  font-weight: 500;

  line-height: 1.2;
}

.hv-heart {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  font-family: Arial, sans-serif;

  font-size: 29px;

  font-weight: 300;

  line-height: 1;

  color: #e56f7a;
}

.hv-footer-brand p {
  margin: 8px 0 0 1px;

  color: #a9948d;

  font-size: 13px;

  line-height: 1.5;
}

/* =========================================================
   FOOTER COLUMNS
========================================================= */

.hv-footer-column {
  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.hv-footer-column h4 {
  margin: 0 0 12px;

  color: #302c29;

  font-size: 14px;

  font-weight: 600;

  line-height: 1.3;
}

.hv-footer-column a {
  margin-bottom: 7px;

  color: #756d68;

  font-size: 12.5px;

  line-height: 1.45;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.hv-footer-column a:hover {
  color: var(--pink);

  transform: translateX(2px);
}

/* =========================================================
   CONTACT
========================================================= */

.hv-contact a {
  display: flex;

  align-items: center;

  gap: 7px;
}

.hv-contact i {
  width: 11px;

  text-align: center;

  color: #5b5551;

  font-size: 9px;
}

/* =========================================================
   FOOTER DECORATION
========================================================= */

.hv-footer-decoration {
  position: absolute;

  top: 0;
  right: 0;

  width: 150px;
  height: 100%;

  pointer-events: none;
}

.hv-footer-decoration img {
  position: absolute;

  right: -38px;

  bottom: 10px;

  width: 110px;
  height: 165px;

  object-fit: contain;

  object-position: bottom right;
}

/* =========================================================
   FOOTER HANDWRITTEN MESSAGE
========================================================= */

.hv-footer-message {
  position: absolute;

  z-index: 2;

  top: 57px;

  left: 0;

  font-family: "Segoe Script", "Brush Script MT", cursive;

  font-size: 17px;

  line-height: 1.35;

  color: #d87882;

  transform: rotate(-7deg);

  white-space: nowrap;
}

.hv-footer-message span {
  font-size: 10px;

  color: #e47c88;
}
.hv-logo img {
  width: 230px;
  height: auto;
}

/* =========================================================
   TABLET FOOTER
========================================================= */

@media (max-width: 900px) {
  .hv-footer-inner {
    grid-template-columns:
      1.2fr
      1fr
      1fr
      1fr;

    column-gap: 25px;

    padding: 30px 120px 28px 24px;
  }

  .hv-logo {
    font-size: 19px;
  }

  .hv-footer-column h4 {
    font-size: 13px;
  }

  .hv-footer-column a {
    font-size: 12px;
  }

  .hv-footer-decoration {
    width: 115px;
  }

  .hv-footer-decoration img {
    width: 90px;

    height: 140px;

    right: -20px;
  }
}

/* =========================================================
   MOBILE FOOTER
========================================================= */
/* =========================================================
   MOBILE FOOTER
   CONTACT + DECORATION nằm cùng một hàng
========================================================= */
@media (max-width: 650px) {

    .hv-footer-inner {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 28px 20px;

        padding: 28px 20px 35px;
    }


    /* =====================================================
       BRAND
    ===================================================== */

    .hv-footer-brand {
        grid-column: 1 / -1;
    }


    /* =====================================================
       MUA SẮM
    ===================================================== */

    .hv-footer-inner > .hv-footer-column:nth-child(2) {
        grid-column: 1;
    }


    /* =====================================================
       HỖ TRỢ
    ===================================================== */

    .hv-footer-inner > .hv-footer-column:nth-child(3) {
        grid-column: 2;
    }


    /* =====================================================
       CONTACT
       Nằm bên trái
    ===================================================== */

    .hv-contact {
        grid-column: 1;

        position: relative;

        z-index: 3;
    }


    /* =====================================================
       DECORATION
       Nằm bên phải CONTACT
    ===================================================== */

    .hv-footer-decoration {

        grid-column: 2;

        position: relative;

        top: -26px;
        right: -13px;
        bottom: auto;
        left: auto;

        width: 100%;
        height: 130px;

        display: flex;

        align-items: flex-end;
        justify-content: flex-end;

        pointer-events: none;
    }


    .hv-footer-decoration img {

        position: absolute;

        right: -10px;
        bottom: 0;

        width: 90px;
        height: 125px;

        object-fit: contain;
        object-position: bottom right;
    }


    /* =====================================================
       MESSAGE
    ===================================================== */

    .hv-footer-message {

        top: auto;
        left: auto;

        right: 50px;
        bottom: 35px;

        font-size: 9px;

        line-height: 1.3;

        transform: rotate(-7deg);

        white-space: nowrap;
    }


    .hv-footer-message span {
        font-size: 7px;
    }


    /* =====================================================
       LOGO
    ===================================================== */

    .hv-logo {
        font-size: 19px;
    }


    .hv-heart {
        width: 22px;
        height: 22px;

        font-size: 26px;
    }


    .hv-footer-brand p {
        margin-top: 6px;

        font-size: 11px;
    }


    /* =====================================================
       COLUMN TITLE
    ===================================================== */

    .hv-footer-column h4 {

        margin-bottom: 9px;

        font-size: 12px;
    }


    /* =====================================================
       LINKS
    ===================================================== */

    .hv-footer-column a {

        margin-bottom: 6px;

        font-size: 10px;

        line-height: 1.3;
    }


    /* =====================================================
       CONTACT ICON
    ===================================================== */

    .hv-contact a {
        gap: 6px;
    }

    .hv-contact i {
        width: 10px;

        font-size: 8px;
    }
}