/* ========================================
   MINIMAL HEADER - Nothing.tech Style
   Pink (#d8528c), Black, White
   ======================================== */

/* Blur Backdrop Overlay */
.blur-dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  /*background: rgba(255, 255, 255, 0.7);*/
  backdrop-filter: blur(40px) saturate(70%);
  -webkit-backdrop-filter: blur(40px) saturate(70%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9000;
  pointer-events: none;
}

.blur-dropdown-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Ensure dropdowns are above backdrop */
.header-dropdown {
  position: relative;
  z-index: 9001;
}

/* Disable body scroll when dropdown is open */
body.dropdown-open {
  overflow: hidden;
}

/* Fixed Header with Scroll Behavior */
.minimal-header {
  position: fixed !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35em;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none !important;
  transition: transform 0.3s ease-in-out, left 0s, width 0s;
  margin-top: 12px;
  border-radius: 10px;
  color: white;
}

.minimal-header.dropdown-open {
  background: rgba(255, 255, 255, 1.0);
  transition: transform 0.3s ease-in-out, left 0s, width 0s;
  border-radius: 10px 10px 0 0;
  color: black;
}

.minimal-header.header-hidden {
  transform: translate(-50%, -130%);
}

.minimal-header.header-visible {
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .minimal-header {
    width: 90vw;
  }
}

/* Header Wrapper - fills the constrained header */
.header-wrapper {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*background: transparent !important;*/
  color: inherit;
}

@media (max-width: 768px) {
  .header-wrapper {
    padding: 15px 0;
  }
}

/* Header Buttons (Menu & Cart) */
.header-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: inherit;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover {
  color: #d8528c;
}

.header-btn:focus {
  outline: none;
}

/* Hamburger Menu Icon */
.menu-btn {
  margin-left: 20px;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.hamburger {
  width: 24px;
  height: 2px;
  color: inherit;
  background: currentColor;
  display: block;
  transition: all 0.3s ease;
}

/* Cart Button */
.cart-btn {
  width: 40px;
  height: 40px;
  margin-right: 20px;
}

.cart-btn svg {
  width: 24px;
  height: 24px;
}

/* Logo */
.header-logo {
  flex: 1;
  text-align: center;
}

.header-logo a {
  display: inline-block;
}

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

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .header-logo img {
    max-height: 22px;
  }
  
  .logo-text {
    font-size: 20px;
  }
}

/* Dropdown Panels - absolute positioned relative to header */
.header-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 35em;
  background: rgba(255, 255, 255, 1);
  border-bottom: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); */
  z-index: 9001;
  border-radius: 0 0 10px 10px;
}

.header-dropdown.active {
  max-height: 90vh;
  min-height: 90vh;
  opacity: 1;
  overflow-y: auto;
}

/* Dropdown Content */
.dropdown-content {
  width: 100%;
  padding: 40px 30px;
  min-height: 100%;
}

@media (max-width: 768px) {
  .header-dropdown {
    width: 90vw;
  }
  
  .header-dropdown.active {
    max-height: 85vh;
    min-height: 85vh;
  }
  
  .dropdown-content {
    padding: 30px 20px;
  }
}

/* Menu Navigation */
.minimal-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 2em;
  text-align: center;
    justify-content: center;
}

.nav-item {
  font-size: 2em;
  margin-bottom: 0.7em;
  text-align: center;
    justify-content: center;
}

.nav-link {
  text-align: center;
    justify-content: center;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  font-family: 'chaneyregular', sans-serif;
}

.nav-link:hover {
  color: #d8528c;
}

@media (max-width: 768px) {
  .nav-link {
  }
}

/* Submenu */
.nav-submenu {
  margin-top: 12px;
  padding-left: 20px;
  list-style: none;
}

.nav-submenu li {
  margin-bottom: 8px;
}

.nav-submenu a {
  font-size: 16px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'Strawford', sans-serif;
}

.nav-submenu a:hover {
  color: #d8528c;
}

/* Cart Dropdown */
.cart-dropdown .dropdown-content {
  padding: 30px 0;
}

#cart-preview {
  font-family: 'Strawford', sans-serif;
}

/* Cart Preview Items */
.cart-preview-items {
  margin-bottom: 20px;
}

/* Cart Preview Styling */
#cart-preview .table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

#cart-preview .table td {
  padding: 15px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

#cart-preview .table tbody tr:last-child td {
  border-bottom: none;
}

#cart-preview .table img {
  max-width: 80px;
  height: auto;
  border-radius: 4px;
}

#cart-preview .text-right {
  text-align: right;
}

#cart-preview .text-left {
  text-align: left;
}

#cart-preview .text-center {
  text-align: center;
}

/* Cart Product Name */
#cart-preview .table a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

#cart-preview .table a:hover {
  color: #d8528c;
}

#cart-preview .table small {
  color: #666;
  font-size: 12px;
}

/* Cart Buttons */
#cart-preview .btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Strawford', sans-serif;
  border-radius: 0;
}

#cart-preview .btn:hover {
  background: #d8528c;
  color: #fff;
}

#cart-preview .btn-primary {
  background: #d8528c;
}

#cart-preview .btn-primary:hover {
  background: #000;
}

#cart-preview .btn-default {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

#cart-preview .btn-default:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

#cart-preview .btn-danger {
  background: transparent;
  color: #999;
  padding: 5px 10px;
  font-size: 12px;
}

#cart-preview .btn-danger:hover {
  color: #d8528c;
  background: transparent;
}

#cart-preview .btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}

/* Cart Totals */
.cart-preview-totals {
  margin: 20px 0;
}

#cart-preview .table-bordered {
  border: 1px solid #e5e5e5;
  margin-top: 20px;
}

#cart-preview .table-bordered td {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #e5e5e5;
}

#cart-preview .table-bordered strong {
  font-weight: 600;
}

/* Cart Preview Buttons */
.cart-preview-buttons {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
}

/* Empty Cart Message */
#cart-preview p {
  text-align: center;
  color: #666;
  font-size: 16px;
  padding: 40px 20px;
  margin: 0;
}

/* No body padding - header overlays content */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Ensure hero products start at top */
.hero-product-section,
.hero-products-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Smooth Scrollbar for Dropdowns */
.header-dropdown::-webkit-scrollbar {
  width: 8px;
}

.header-dropdown::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.header-dropdown::-webkit-scrollbar-thumb {
  background: #d8528c;
  border-radius: 4px;
}

.header-dropdown::-webkit-scrollbar-thumb:hover {
  background: #c4477a;
}

/* Remove any conflicting top nav or old header styles */
#top {
  display: none !important;
}

.site-header {
  display: none !important;
}

#menu {
  display: none !important;
}

/* Ensure main content doesn't overlap */
.site-content {
  position: relative;
  z-index: 1;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #d8528c;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding: 2px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-badge.active {
    display: flex;
}
