/* ========================================
   Header Bloom'In
   Figma Node: 246:64252
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-ivory-1);
  height: 96px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 48px;
  gap: 48px;
}

.logo {
  flex-shrink: 0;
  width: 240px;
  height: 60px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  background-color: var(--color-ivory-2);
}

.nav-link.active {
  background-color: var(--color-ivory-2);
}

.nav-icon {
  width: 10px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item.has-dropdown:hover .nav-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-ivory-1);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  list-style: none;
  margin: 0;
  z-index: 100;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  list-style: none;
}

.nav-dropdown-item a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.nav-dropdown-item a:hover {
  background-color: var(--color-ivory-2);
}

/* Sub-dropdown (3rd level) */
.nav-dropdown-item.has-sub-dropdown {
  position: relative;
}

.nav-dropdown-item.has-sub-dropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-sub-icon {
  width: 8px;
  height: 10px;
  transform: rotate(-90deg);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-sub-dropdown {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background-color: var(--color-ivory-1);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  list-style: none;
  margin: 0;
  z-index: 101;
}

.nav-dropdown-item.has-sub-dropdown:hover > .nav-sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-dropdown-item.has-sub-dropdown:hover > a .nav-sub-icon {
  transform: rotate(-90deg) translateY(-2px);
}

.nav-sub-dropdown-item a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.nav-sub-dropdown-item a:hover {
  background-color: var(--color-ivory-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.nav-mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
}

.nav-mobile-icon,
.nav-mobile-icon::before,
.nav-mobile-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-mobile-icon::before,
.nav-mobile-icon::after {
  content: '';
  position: absolute;
  left: 4px;
}

.nav-mobile-icon::before {
  top: 8px;
}

.nav-mobile-icon::after {
  bottom: 8px;
}

/* ========================================
   Button Component
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn svg,
.btn-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-ivory-3);
  color: var(--color-text);
  border: 1.5px solid var(--color-primary-light);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-ivory-3);
}

.btn-cart {
  position: relative;
  background-color: #EDF0E0;
  color: var(--color-primary);
  border: none;
}

.btn-cart:hover {
  background-color: var(--color-ivory-2);
}

.btn-cart .btn-icon {
  width: 17px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background-color: var(--color-highlight);
  color: var(--color-ivory-3);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
}

/* ========================================
   Footer Bloom'In
   Figma Node: 192:7272
   ======================================== */

.footer {
  background-color: var(--color-ivory-3);
}

/* Banner */
.footer-banner {
  background-color: var(--color-highlight);
  padding: 24px 48px;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  color: var(--color-green-light);
}

.banner-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-green-light);
  border-radius: 50%;
}

/* Main Footer */
.footer-main {
  display: flex;
  gap: 112px;
  padding: 48px 96px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer-logo {
  width: 143px;
  height: 97px;
}

.footer-qr {
  width: 85px;
  height: 85px;
  object-fit: cover;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-heading {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

/* Contact Column - Free text content */
.footer-contact-content {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

.footer-contact-content p {
  margin: 0 0 12px 0;
}

.footer-contact-content p:last-child {
  margin-bottom: 0;
}

.footer-contact-content a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-contact-content a:hover {
  text-decoration: underline;
}

/* Newsletter */
.footer-newsletter {
  padding: 0 96px 48px;
}

.newsletter-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: var(--color-ivory-1);
  border: 1.5px solid var(--color-ivory-2);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-text);
  white-space: nowrap;
}

.newsletter-form {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 16px;
}

.newsletter-input {
  flex: 1;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 20px;
  color: var(--color-text);
  background: transparent;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-md);
}

.newsletter-input::placeholder {
  color: var(--color-text);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
}

.newsletter-btn {
  width: 21px;
  height: 18px;
  color: var(--color-text);
  transition: transform var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.newsletter-btn:hover {
  transform: translateX(4px);
}

.newsletter-btn svg {
  width: 21px;
  height: 18px;
}

/* Bottom / Legal */
.footer-bottom {
  background-color: var(--color-primary);
  padding: 24px 48px;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-legal a,
.footer-legal span {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-green-light);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-green-light);
  border-radius: 50%;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1280px) {
  .footer-main {
    flex-wrap: wrap;
    gap: 48px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  /* Mobile Menu - Hidden by default */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-ivory-1);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  /* Mobile Menu - Open state */
  .nav.nav-open .nav-menu {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 35px;
  }

  /* Hamburger to X animation */
  .nav-mobile-toggle.is-active .nav-mobile-icon {
    background-color: transparent;
  }

  .nav-mobile-toggle.is-active .nav-mobile-icon::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .nav-mobile-toggle.is-active .nav-mobile-icon::after {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  /* Mobile nav items */
  .nav-menu .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-ivory-2);
  }

  .nav-menu .nav-item:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 16px 0;
    justify-content: space-between;
  }

  /* Mobile dropdown */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-item.has-dropdown.dropdown-open .nav-dropdown {
    display: block;
  }

  .nav-item.has-dropdown.dropdown-open .nav-icon {
    transform: rotate(180deg);
  }

  /* Mobile 3rd level */
  .nav-sub-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-sub-icon {
    transform: rotate(0deg);
  }

  .nav-dropdown-item.has-sub-dropdown.sub-dropdown-open > .nav-sub-dropdown {
    display: block;
  }

  .nav-dropdown-item.has-sub-dropdown.sub-dropdown-open > a .nav-sub-icon {
    transform: rotate(180deg);
  }

  /* Prevent scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  .footer-main {
    padding: 48px;
  }

  .footer-newsletter {
    padding: 0 48px 48px;
  }

  .newsletter-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-title {
    white-space: normal;
  }

  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    gap: 8px;
  }

  .banner-dot {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }

  .footer-legal .footer-dot {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 140px;
  }

  .logo-img {
    max-height: 60px;
    width: auto;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-actions .btn-cart span:not(.cart-count) {
    display: none;
  }

  .nav-actions .btn-cart {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 24px;
  }

  .nav-actions .btn {
    padding: 12px 8px;
    font-size: 14px;
  }

  .footer-main {
    padding: 24px;
  }

  .footer-newsletter {
    padding: 0 24px 24px;
  }
}
