/* CartNexa Header Widgets - Specificity, Mini Cart & Account Popup Stylesheet */

.cartnexa-header-widget {
  width: 100%;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

.cartnexa-header-widget *,
.cartnexa-header-widget *::before,
.cartnexa-header-widget *::after {
  box-sizing: border-box;
}

.cartnexa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #eef2f5;
  box-shadow: none;
  padding: 10px 24px;
  position: relative;
}

/* ── Logo ── */
.cartnexa-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cartnexa-header-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.cartnexa-header-logo img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.cartnexa-header-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.4px;
}

/* ── Navigation Menu ── */
.cartnexa-header-menu {
  display: flex;
  align-items: center;
}

.cartnexa-header-menu > ul,
.cartnexa-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.cartnexa-header-menu li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.cartnexa-header-menu a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cartnexa-header-menu a:hover {
  color: #3eb4a8;
}

/* All WordPress Navigation Active / Current State Classes */
.cartnexa-header-menu li.current-menu-item > a,
.cartnexa-header-menu li.current_page_item > a,
.cartnexa-header-menu li.current-menu-parent > a,
.cartnexa-header-menu li.current-menu-ancestor > a,
.cartnexa-header-menu li.current_page_parent > a,
.cartnexa-header-menu li.current_page_ancestor > a,
.cartnexa-header-menu .sub-menu li.current-menu-item > a,
.cartnexa-header-menu .sub-menu li.current_page_item > a {
  color: #3eb4a8;
}

/* Submenu Dropdown */
.cartnexa-header-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef2f5;
  padding: 8px 0;
  margin: 8px 0 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.cartnexa-header-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cartnexa-header-menu .sub-menu li {
  width: 100%;
}

.cartnexa-header-menu .sub-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 13.5px;
  color: #2c3e50;
  width: 100%;
  white-space: nowrap;
}

.cartnexa-header-menu .sub-menu a:hover {
  background-color: #eef7f6;
  color: #3eb4a8;
}

/* ── Mega Dropdown (3-Column WooCommerce Mega Menu) ── */
.cartnexa-header-menu .cartnexa-mega-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 1140px;
  max-width: calc(100vw - 40px);
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #eef2f5;
  padding: 24px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  z-index: 999;
}

.cartnexa-header-menu li:hover > .cartnexa-mega-menu-dropdown,
.cartnexa-header-menu li.is-open > .cartnexa-mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Top Pointer Arrow */
.cartnexa-mega-pointer {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border-top: 1px solid #eef2f5;
  border-left: 1px solid #eef2f5;
  z-index: 1000;
  border-top-left-radius: 3px;
}

/* 3-Column Inner Layout */
.cartnexa-mega-menu-inner {
  display: flex;
  gap: 28px;
  width: 100%;
  align-items: stretch;
}

/* ── LEFT COLUMN: Primary Categories ── */
.cartnexa-mega-column.cartnexa-mega-primary {
  flex: 0 0 34%;
  max-width: 34%;
  border-right: 1px solid #f0f4f7;
  padding-right: 20px;
}

.cartnexa-mega-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cartnexa-mega-cat-item {
  border-radius: 14px;
  transition: background-color 0.2s ease;
}

.cartnexa-mega-cat-link {
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 12px !important;
  border-radius: 14px;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s ease;
}

.cartnexa-mega-cat-item:hover,
.cartnexa-mega-cat-item.is-active {
  background-color: #eef7f6;
}

.cartnexa-mega-cat-thumb {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f3f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartnexa-mega-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cartnexa-mega-cat-thumb.cartnexa-thumb-placeholder {
  color: #a0aec0;
}

.cartnexa-mega-cat-thumb.cartnexa-thumb-placeholder svg {
  width: 24px;
  height: 24px;
}

.cartnexa-mega-cat-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cartnexa-mega-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  transition: color 0.18s ease;
}

.cartnexa-mega-cat-item.is-active .cartnexa-mega-cat-title,
.cartnexa-mega-cat-item:hover .cartnexa-mega-cat-title {
  color: #2da89b;
}

.cartnexa-mega-cat-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.35;
  white-space: normal;
}

.cartnexa-mega-cat-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #cbd5e1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.cartnexa-mega-cat-chevron svg {
  width: 100%;
  height: 100%;
}

.cartnexa-mega-cat-item.is-active .cartnexa-mega-cat-chevron,
.cartnexa-mega-cat-item:hover .cartnexa-mega-cat-chevron {
  color: #2da89b;
  transform: translateX(3px);
}

/* ── PANELS WRAPPER (Middle + Right Columns) ── */
.cartnexa-mega-panels-wrap {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.cartnexa-mega-panel {
  display: none;
  width: 100%;
  height: 100%;
}

.cartnexa-mega-panel.is-active {
  display: flex;
  gap: 28px;
}

/* Column Headings */
.cartnexa-mega-col-heading {
  font-size: 12.5px;
  font-weight: 700;
  color: #2da89b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

/* ── MIDDLE COLUMN: Child Categories ── */
.cartnexa-mega-column.cartnexa-mega-secondary {
  flex: 0 0 46%;
  max-width: 46%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #f0f4f7;
  padding-right: 20px;
}

.cartnexa-mega-child-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.cartnexa-mega-child-list li {
  margin: 0;
  padding: 0;
}

.cartnexa-mega-child-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.18s ease;
}

.cartnexa-mega-child-link:hover {
  background-color: #f8fafc;
  color: #2da89b;
}

.cartnexa-mega-child-link.is-all-link {
  font-weight: 700;
  color: #2da89b;
}

.cartnexa-mega-child-arrow {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: color 0.18s ease, transform 0.18s ease;
}

.cartnexa-mega-child-arrow svg {
  width: 100%;
  height: 100%;
}

.cartnexa-mega-child-link:hover .cartnexa-mega-child-arrow {
  color: #2da89b;
  transform: translateX(3px);
}

/* Promo Card at bottom of middle column */
.cartnexa-mega-promo-card {
  margin-top: 16px;
  background-color: #eef7f6;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border: 1px solid #d8f0ed;
}

.cartnexa-mega-promo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #2da89b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(45, 168, 155, 0.12);
}

.cartnexa-mega-promo-icon svg {
  width: 18px;
  height: 18px;
}

.cartnexa-mega-promo-content {
  flex: 1 1 auto;
}

.cartnexa-mega-promo-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 3px 0;
  line-height: 1.2;
}

.cartnexa-mega-promo-text {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

.cartnexa-mega-promo-arrow {
  width: 16px;
  height: 16px;
  color: #2da89b;
  flex-shrink: 0;
}

.cartnexa-mega-promo-arrow svg {
  width: 100%;
  height: 100%;
}

/* ── RIGHT COLUMN: Popular Products ── */
.cartnexa-mega-column.cartnexa-mega-products {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
}

.cartnexa-mega-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.cartnexa-mega-product-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 6px !important;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.cartnexa-mega-product-card:hover {
  background-color: #f8fafc;
  transform: translateX(2px);
}

.cartnexa-mega-product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartnexa-mega-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cartnexa-mega-product-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cartnexa-mega-product-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cartnexa-mega-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cartnexa-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
}

.cartnexa-star-rating svg {
  width: 13px;
  height: 13px;
}

.cartnexa-star-rating svg.star-empty {
  color: #cbd5e1;
}

.cartnexa-review-count {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 400;
}

.cartnexa-mega-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.cartnexa-mega-product-price del {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  margin-right: 4px;
}

.cartnexa-mega-product-price ins {
  text-decoration: none;
  color: #2da89b;
}

.cartnexa-mega-no-products {
  padding: 20px 0;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

/* Bottom Action Pill Button */
.cartnexa-mega-view-all-wrap {
  margin-top: 14px;
}

.cartnexa-mega-view-all-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 18px !important;
  background-color: #eef7f6;
  color: #2da89b !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cartnexa-mega-view-all-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.cartnexa-mega-view-all-btn:hover {
  background-color: #2da89b;
}

.cartnexa-mega-view-all-btn:hover svg {
  transform: translateX(4px);
}

/* ── Live Product Search ── */
.cartnexa-header-search {
  position: relative;
  width: 260px;
  max-width: 100%;
  display: flex;
  align-items: center;
}

.cartnexa-search-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.cartnexa-search-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 38px;
  padding: 0 36px 0 16px;
  background-color: #eef7f6;
  border: 1px solid #d1ece9;
  border-radius: 20px;
  font-size: 13.5px;
  color: #2c3e50;
  box-shadow: none;
  outline: none;
  transition: all 0.2s ease;
}

.cartnexa-search-input::placeholder {
  color: #78909c;
}

.cartnexa-search-input::-webkit-search-decoration,
.cartnexa-search-input::-webkit-search-cancel-button,
.cartnexa-search-input::-webkit-search-results-button,
.cartnexa-search-input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.cartnexa-search-input:focus-visible,
.cartnexa-search-input:focus {
  background-color: #ffffff;
  border-color: #3eb4a8;
  box-shadow: 0 0 0 3px rgba(62, 180, 168, 0.15);
}

.cartnexa-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #37474f;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cartnexa-search-btn svg {
  width: 16px;
  height: 16px;
  stroke: #37474f;
}

.cartnexa-search-btn:hover {
  color: #3eb4a8;
  background-color: rgba(62, 180, 168, 0.1);
}

/* Search Dropdown */
.cartnexa-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1ece9;
  overflow: hidden;
  z-index: 1000;
}

.cartnexa-search-results {
  max-height: 360px;
  overflow-y: auto;
}

.cartnexa-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eef7f6;
  transition: background-color 0.15s ease;
}

.cartnexa-search-item:last-child {
  border-bottom: none;
}

.cartnexa-search-item:hover,
.cartnexa-search-item.is-focused {
  background-color: #eef7f6;
}

.cartnexa-search-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f3f4f6;
}

.cartnexa-search-info {
  flex-grow: 1;
  min-width: 0;
}

.cartnexa-search-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartnexa-search-price {
  font-size: 12px;
  font-weight: 700;
  color: #3eb4a8;
}

.cartnexa-search-loading,
.cartnexa-search-message {
  padding: 14px 16px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.cartnexa-search-footer {
  padding: 10px 14px;
  background-color: #f9fafb;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.cartnexa-search-footer-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #3eb4a8;
  text-decoration: none;
}

/* ── Header Action Buttons Group (Wishlist, Account, Cart) ── */
.cartnexa-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cartnexa-header-cart-wrap,
.cartnexa-header-account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Action Buttons Reset (Soft Teal Circle BG like Reference) */
.cartnexa-header-action {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  background-color: #eef7f6;
  border: none;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  color: #2c3e50;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cartnexa-header-action:hover {
  color: #3eb4a8;
  background-color: #e2f2f0;
}

.cartnexa-header-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cartnexa-header-action-icon svg {
  width: 20px;
  height: 20px;
  stroke: #2c3e50;
  display: block;
}

/* Attached Counter Badge (Teal Badge with White Text like Reference) */
.cartnexa-header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: #3eb4a8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(62, 180, 168, 0.3);
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.cartnexa-header-cart-subtotal {
  font-size: 13.5px;
  font-weight: 600;
  color: #546e7a;
  margin-left: 6px;
}

/* ── Header Account Popup Dropdown ── */
.cartnexa-header-account-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 24px);
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #d1ece9;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  overflow: hidden;
  font-size: 13.5px;
  animation: cartnexaFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cartnexa-account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef7f6;
  background-color: #ffffff;
}

.cartnexa-account-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: #eef7f6;
  border: 2px solid #d1ece9;
}

.cartnexa-account-greeting {
  font-size: 12px;
  color: #78909c;
  font-weight: 500;
  display: block;
}

.cartnexa-account-name {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1.2;
}

.cartnexa-account-menu {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cartnexa-account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.cartnexa-account-menu-item:hover {
  background-color: #eef7f6;
  color: #3eb4a8;
}

.cartnexa-account-menu-item:hover .cartnexa-account-item-icon svg {
  stroke: #3eb4a8;
}

.cartnexa-account-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: #2c3e50;
  display: block;
  flex-shrink: 0;
  transition: stroke 0.15s ease;
}

.cartnexa-account-wishlist-badge {
  margin-left: auto;
  position: static;
  min-width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  background-color: #3eb4a8;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cartnexa-account-footer {
  padding: 8px;
  border-top: 1px solid #eef7f6;
  background-color: #ffffff;
}

.cartnexa-account-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cartnexa-account-logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.cartnexa-account-logout-btn:hover .cartnexa-account-item-icon svg {
  stroke: #ef4444;
}

.cartnexa-account-guest {
  padding: 24px 18px;
  text-align: center;
}

.cartnexa-account-guest-icon svg {
  width: 38px;
  height: 38px;
  stroke: #3eb4a8;
  margin-bottom: 8px;
}

.cartnexa-account-guest-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 4px 0;
}

.cartnexa-account-guest-text {
  font-size: 12.5px;
  color: #78909c;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.cartnexa-btn-account-login {
  display: block;
  width: 100%;
  padding: 10px 0;
  background-color: #3eb4a8;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.cartnexa-btn-account-login:hover {
  background-color: #359e93;
  color: #ffffff;
}

.cartnexa-account-register-wrap {
  margin-top: 12px;
  text-align: center;
}

.cartnexa-account-register-link {
  font-size: 12px;
  font-weight: 600;
  color: #3eb4a8;
  text-decoration: none;
}

.cartnexa-account-register-link:hover {
  text-decoration: underline;
}

/* ── Header Mini Cart Dropdown ── */
.cartnexa-header-mini-cart {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #d1ece9;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  overflow: hidden;
  font-size: 13.5px;
  animation: cartnexaFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cartnexaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cartnexa-mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eef7f6;
  background-color: #ffffff;
  font-weight: 700;
  color: #2c3e50;
}

.cartnexa-mini-cart-title {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
}

.cartnexa-mini-cart-count-label {
  font-size: 13px;
  font-weight: 600;
  color: #3eb4a8;
}

.cartnexa-mini-cart-items {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Scrollbar Customization */
.cartnexa-mini-cart-items::-webkit-scrollbar {
  width: 5px;
}

.cartnexa-mini-cart-items::-webkit-scrollbar-track {
  background: #f4f5f7;
  border-radius: 10px;
}

.cartnexa-mini-cart-items::-webkit-scrollbar-thumb {
  background: #d1ece9;
  border-radius: 10px;
}

.cartnexa-mini-cart-items::-webkit-scrollbar-thumb:hover {
  background: #3eb4a8;
}

.cartnexa-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f7f7f7;
  position: relative;
  transition: opacity 0.2s ease;
}

.cartnexa-mini-cart-item.is-loading {
  pointer-events: none;
}

.cartnexa-mini-cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cartnexa-mini-cart-thumb img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background-color: #f3f4f6;
}

.cartnexa-mini-cart-info {
  flex-grow: 1;
  min-width: 0;
}

.cartnexa-mini-cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartnexa-mini-cart-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cartnexa-mini-cart-item-title a:hover {
  color: #3eb4a8;
}

.cartnexa-mini-cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Compact Rounded Quantity Controls */
.cartnexa-mini-cart-qty-wrap {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border: 1px solid #d1ece9;
  border-radius: 20px;
  background-color: #eef7f6;
  overflow: hidden;
}

.cartnexa-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #2c3e50;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cartnexa-qty-btn:hover {
  background-color: #d1ece9;
  color: #3eb4a8;
}

.cartnexa-qty-val {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50;
}

.cartnexa-mini-cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #3eb4a8;
}

/* Premium Circular Remove Button */
.cartnexa-mini-cart-remove {
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  background-color: transparent;
  cursor: pointer;
  color: #78909c;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cartnexa-mini-cart-remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  display: block;
}

.cartnexa-mini-cart-remove:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.cartnexa-mini-cart-footer {
  padding: 14px 16px;
  background-color: #ffffff;
  border-top: 1px solid #eef7f6;
}

.cartnexa-mini-cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  color: #2c3e50;
}

.cartnexa-mini-cart-subtotal-val {
  color: #3eb4a8;
}

.cartnexa-mini-cart-buttons {
  display: flex;
  gap: 8px;
}

.cartnexa-btn {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.cartnexa-btn-view-cart {
  background-color: #3eb4a8;
  color: #ffffff;
}

.cartnexa-btn-view-cart:hover {
  background-color: #359e93;
  color: #ffffff;
}

.cartnexa-btn-checkout {
  background-color: #2c3e50;
  color: #ffffff;
}

.cartnexa-btn-checkout:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.cartnexa-mini-cart-empty {
  padding: 24px 16px;
  text-align: center;
}

.cartnexa-mini-cart-empty-icon svg {
  width: 36px;
  height: 36px;
  stroke: #3eb4a8;
  margin-bottom: 8px;
}

.cartnexa-mini-cart-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 4px 0;
}

.cartnexa-mini-cart-empty-text {
  font-size: 12.5px;
  color: #78909c;
  margin: 0 0 12px 0;
}

.cartnexa-mini-cart-empty-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #3eb4a8;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cartnexa-mini-cart-empty-btn:hover {
  background-color: #359e93;
  color: #ffffff;
}

/* Mobile Hamburger Toggle */
.cartnexa-header-hamburger {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .cartnexa-header-menu {
    display: none;
  }
  .cartnexa-header-hamburger {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .cartnexa-header-search {
    display: none;
  }
  .cartnexa-header-inner {
    padding: 10px 16px;
    gap: 10px;
  }
}
