/* ===================================================START HERE=========================
   GLOBAL VARIABLES & FRAMEWORK RESET
   ========================================== */
:root {
  --primary-color: #000000;
  --accent-color: #442C43;
  --border-gray: #e2e2e2;
  --text-muted: #555555;
  --bg-beige: #f9f6f0;
}

html {
  color-scheme: light;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
  color: var(--primary-color);
  max-width: 100vw;
  color-scheme: light;
}

/* Force light mode on all devices, including those with dark mode enabled #fffaec; */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #fffbf7 !important;
    color: #000000 !important;
  }
  /* Prevent iOS Safari from auto-darkening form inputs */
  input, textarea, select, button {
    color-scheme: light !important;
    -webkit-appearance: none !important;
  }
}

* { box-sizing: border-box; }

.dark-pink-placeholder {
  background-color: var(--accent-color) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ========================================================================================== <
   FIXED NAVIGATION NAVBAR START OF HEADLINE
   ========================================== */
.headline {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  height: 7vh;
  min-height: 50px;
  background-color: rgb(255 250 236 / 0.46);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
}

.desktop-nav {
  display: none;
}

.site-shell-spacer {
  height: max(7vh, 50px);
}

@media (max-width: 991px) {
  .headline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
}

.logo-placeholder {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  transition: 0.3s ease;
}
.logo-placeholder:hover {
  cursor: pointer;
  color: #605111;
}

.menu-icon {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
  z-index: 110;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #605111;
  transition: transform 0.3s ease;
}

@media (min-width: 992px) {
  .headline {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
  }

  .desktop-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(16px, 2.6vw, 40px);
    height: 100%;
  }

  .desktop-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
  }

  .desktop-nav-item .menu-section-title {
    margin: 0;
    padding: 0;
    border: 0;
    width: auto;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .desktop-nav-item:hover .menu-section-title {
    color: var(--primary-color);
  }

  .desktop-nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: calc(100% + 28px);
    width: max-content;
    max-width: 240px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .desktop-nav-dropdown .menu-column {
    width: 100%;
    min-width: 100%;
    padding: 14px 16px;
    border-right: 0;
    border-radius: 12px;
    background-color: rgba(255, 250, 236, 0.94);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }

  .desktop-nav-dropdown .menu-column a {
    padding: 7px 0;
  }

  .desktop-nav-item:hover .desktop-nav-dropdown,
  .desktop-nav-item:focus-within .desktop-nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .menu-icon {
    display: none;
  }
}

.cart-trigger {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  z-index: 110;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cart-trigger:hover { transform: scale(1.15); opacity: 0.8; }
.cart-trigger:active { transform: scale(0.95); }
.cart-trigger svg { width: 24px; height: 24px; }

.cart-count {
  position: absolute;
  top: 2px;
  right: 0px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-family: -apple-system, sans-serif;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* ==========================================
   APPLE GLASS DROPDOWN ANIMATION SYSTEM
   ========================================== */
.frosted-dropdown {
  position: fixed;
  top: 7vh;
  left: 0;
  z-index: 95;
  width: 100vw;
  height: 0;
  transform: scaleY(0);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(255, 250, 236, 0.72);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.4, 1),
              height 0.5s cubic-bezier(0.25, 1, 0.4, 1),
              opacity 0.3s ease;
}

body[data-active-menu="nav"] #morphing-dropdown,
body[data-active-menu="cart"] #morphing-dropdown {
  height: 70vh;
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

/* Mobile: full screen dropdown for nav menu only, cart stays at 70vh */
@media (max-width: 991px) {
  .frosted-dropdown {
    top: 0;
  }
  body[data-active-menu="nav"] #morphing-dropdown {
    height: 100vh;
  }
  body[data-active-menu="cart"] #morphing-dropdown {
    height: 70vh;
  }
  /* Cart content needs extra top padding to clear the headline header */
  body[data-active-menu="cart"] .cart-content {
    padding-top: max(7vh, 80px);
  }
}
/* Menu content container - 3 column layout with dividers */
.menu-links-content {
  display: none;
  width: 100%;
  max-width: 1100px;
  padding: 40px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.4, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.4, 1);
  gap: 0;
}

/* When menu is active, show it */
body[data-active-menu="nav"] .menu-links-content {
  display: flex;
  flex-direction: row;
  gap: 0;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Mobile: stack columns vertically */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }

  body[data-active-menu="nav"] .menu-links-content {
    flex-direction: column;
    gap: 0;
  }

  .menu-column {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 0 !important;
  }

  .menu-column:last-child {
    border-bottom: none !important;
  }
}

/* Each menu column: equal width, with divider between */
.menu-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* Last column has no right divider */
.menu-column:last-child {
  border-right: none;
}

/* Section titles (e.g., "Shop", "About", "Support") */
.menu-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

/* Menu links in each column */
.menu-column a {
  color: #333333;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: -0.2px;
  padding: 6px 0;
  width: 100%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-column a:hover {
  opacity: 0.6;
  transform: translateX(4px);
}

/* Cart content container */
.cart-content {
  display: none;
  width: 100%;
  max-width: 600px;
  padding: 40px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.4, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.4, 1);
}

body[data-active-menu="cart"] .cart-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Legacy: remove old menu-links-content a rules (replaced by .menu-column a above) */

/* Cart Popup Styles */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
  text-align: left;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gray);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  background: #eee;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-info strong { font-size: 14px; margin-bottom: 4px; }
.cart-item-info div { font-size: 12px; color: var(--text-muted); }

.cart-item-delete {
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.3);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #dc3232;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.cart-item-delete:hover {
  background: rgba(220, 50, 50, 0.3);
  border-color: rgba(220, 50, 50, 0.6);
  transform: scale(1.1);
}

.cart-item-delete:active {
  transform: scale(0.9);
}

.cart-item-delete span {
  line-height: 1;
  margin-top: -2px;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-gray);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.cart-summary-line {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-total {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-color);
}

.checkout-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.checkout-btn:hover { background: #333; }
/* =============================================================================================>
   END OF HEADLINE
   ========================================== */



/*/////////////// SITE FOOTER START HERE  //////////////////*/
.site-footer { background-color: #1d140c; color: #fff; padding: 50px 20px; overflow: hidden; }
.footer-inner { max-width: 100%; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-column h3, .footer-column h4 { margin: 0 0 16px 0; }

.footer-column p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 8px 0;
}

.footer-column p a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-column p a:hover {
  opacity: 0.7;
  transform: translateX(6px);
}


.newsletter-field { display: flex; max-width: 320px; border-radius: 25px; overflow: hidden; background: rgba(255,255,255,0.15); }
.newsletter-field input { flex: 1; padding: 12px 16px; border: none; background: transparent; color: #fff; font-size: 14px; outline: none; border-radius: 25px 0 0 25px; }
.newsletter-field input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-field button { background-color: rgba(255,255,255,0.2); color: #fff; border: none; padding: 0 16px; cursor: pointer; transition: background 0.3s ease; border-radius: 0 25px 25px 0; font-size: 18px; }
.newsletter-field button:hover { background-color: rgba(255,255,255,0.35); }


@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr repeat(3, 1fr); max-width: 1260px; }
}
