/**
 * Desktop Header Styles
 * Three-row header: promo text, logo/search/actions, mega menu
 */

/* Header Container */
.sawerna-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  width: 100%;
  visibility: visible;
  opacity: 1;
  z-index: 1000;
  background: #fff;
  box-shadow: none;
}

.sawerna-header__row-1,
.sawerna-header__row-2,
.sawerna-header__row-3 {
  display: block;
  visibility: visible;
  opacity: 1;
}

.sawerna-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

/* Ensure all logo images are visible */
.sawerna-header img.custom-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 100%;
  height: auto;
}

/* ============================================
   ROW 1: Promotional Text + Top Bar Menu
   ============================================ */
.sawerna-header__row-1 {
  position: relative;
  background: rgb(248, 248, 248);
  border-bottom: 1px solid rgb(245, 245, 245);
}

.sawerna-header__row-1-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  min-height: 50px;
  position: relative;
}

.sawerna-header__promo-text {
  flex: 1;
  text-align: left;
  color: #666;
  font-size: 14px;
}

.sawerna-header__top-menu {
  position: static;
  flex-shrink: 0;
}

.sawerna-top-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.sawerna-top-menu li {
  position: relative;
}

.sawerna-top-menu > li {
  position: static;
}

.sawerna-top-menu li:not(:last-child)::after {
  content: '|';
  margin-left: 20px;
  color: #ccc;
}

.sawerna-top-menu a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sawerna-top-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sawerna-top-menu .top-menu-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 6px;
  flex-shrink: 0;
}

.sawerna-top-menu .top-menu-arrow-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sawerna-top-menu .top-menu-arrow-icon svg polyline {
  stroke: currentColor;
  fill: none;
}

.sawerna-top-menu a:hover {
  color: #000;
}

/* HTML Block Dropdown Styles */
.sawerna-top-menu .menu-item-has-html-block {
  position: static;
}

.sawerna-top-menu .menu-item-has-html-block > a {
  position: relative;
  cursor: pointer;
}

.sawerna-top-menu .menu-item-has-html-block > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}

.sawerna-top-menu .menu-item-has-html-block > a[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.sawerna-top-menu > li.has-top-menu-icon.menu-item-has-html-block > a::after {
  content: none;
}

.sawerna-html-block-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  width: 1200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  margin-top: 0;
}

.sawerna-html-block-dropdown-inner {
  padding: 35px 50px 40px 50px;
  margin: 0;
  list-style: none;
}

/* Show dropdown on hover or when expanded (top-level items only) */
.sawerna-top-menu > li.menu-item-has-html-block:hover > .sawerna-html-block-dropdown,
.sawerna-top-menu > li.menu-item-has-html-block > a[aria-expanded="true"] ~ .sawerna-html-block-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Ensure dropdown stays visible when hovering over it */
.sawerna-html-block-dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Top bar submenu dropdown (non-mega menu) */
.sawerna-top-menu > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transform: translateY(-10px);
  background: #fff;
  margin: 0;
  padding: 16px 20px;
  list-style: none;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.15s;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
  overflow: visible;
}

.sawerna-top-menu > li:hover > .sub-menu,
.sawerna-top-menu > li:focus-within > .sub-menu,
.sawerna-top-menu > li > .sub-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.sawerna-top-menu > li > .sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.sawerna-top-menu > li > .sub-menu > li {
  margin: 0;
}

.sawerna-top-menu > li > .sub-menu > li > a {
  display: block;
  padding: 6px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sawerna-top-menu > li > .sub-menu > li > a:hover {
  color: #000;
}

/* HTML block content for top bar submenu items */
.sawerna-top-menu > li > .sub-menu:has(.menu-item-has-html-block) {
  padding: 20px 24px;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 8px;
  align-items: start;
}

.sawerna-top-menu > li > .sub-menu > li.menu-item-has-html-block {
  grid-column: 2;
}

.sawerna-top-menu > li > .sub-menu > li:not(.menu-item-has-html-block) {
  grid-column: 1;
}

/* If submenu contains only HTML block items, center the block */
.sawerna-top-menu > li > .sub-menu:has(> li.menu-item-has-html-block):not(:has(> li:not(.menu-item-has-html-block))) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.sawerna-top-menu > li > .sub-menu:has(> li.menu-item-has-html-block):not(:has(> li:not(.menu-item-has-html-block))) > li.menu-item-has-html-block {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 900px;
  justify-self: center;
}

.sawerna-top-menu > li > .sub-menu > li.menu-item-has-html-block > a {
  display: none;
}

.sawerna-top-menu > li > .sub-menu .sawerna-html-block-dropdown {
  position: static;
  width: 100%;
  transform: none;
  margin: 0;
  box-shadow: none;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sawerna-top-menu > li:hover > .sub-menu .sawerna-html-block-dropdown,
.sawerna-top-menu > li:focus-within > .sub-menu .sawerna-html-block-dropdown,
.sawerna-top-menu > li > .sub-menu:hover .sawerna-html-block-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sawerna-top-menu > li > .sub-menu .sawerna-html-block-dropdown-inner {
  padding: 0;
  overflow: visible;
}

/* Responsive adjustments for HTML block dropdowns */
@media (max-width: 1236px) {
  .sawerna-html-block-dropdown {
    left: 18px;
    margin-left: 0;
    transform: translateX(0) translateY(-10px);
    width: calc(100vw - 36px);
    max-width: 1200px;
  }
  
  .sawerna-top-menu > li.menu-item-has-html-block:hover > .sawerna-html-block-dropdown,
  .sawerna-top-menu > li.menu-item-has-html-block > a[aria-expanded="true"] ~ .sawerna-html-block-dropdown {
    transform: translateX(0) translateY(0);
  }
}

/* ============================================
   ROW 2: Logo | Search | Actions
   ============================================ */
.sawerna-header__row-2 {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.sawerna-header__row-2-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
  min-height: 80px;
}

/* Column 1: Logo */
.sawerna-header__logo-col {
  flex-shrink: 0;
}

.sawerna-header__logo {
  display: flex;
  align-items: center;
  min-height: 50px;
  min-width: 190px;
}

.sawerna-header__logo .custom-logo-link {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex: 0 0 auto;
  min-width: 190px;
  color: #111;
}

.sawerna-header__logo .custom-logo-link img,
.sawerna-header__logo .custom-logo-link svg {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sawerna-header__logo .custom-logo-link img.custom-logo,
.sawerna-header__logo .custom-logo-link img[src*=".svg"],
.sawerna-header__logo .custom-logo-link svg {
  max-width: 250px;
  max-height: 50px;
  width: 187px !important;
  height: 28px !important;
  object-fit: contain;
  flex: 0 0 auto;
}

.sawerna-header__logo .custom-logo-link svg path,
.sawerna-header__logo .custom-logo-link svg .cls-1 {
  fill: currentColor !important;
  stroke: none !important;
}

.sawerna-header__logo img.custom-logo[width],
.sawerna-header__logo img.custom-logo[height] {
  width: auto !important;
  height: auto !important;
}

.sawerna-header__logo img.custom-logo[width="187"][height="27"] {
  width: auto !important;
  height: 50px !important;
  max-width: 250px;
}

.sawerna-header__site-title {
  color: #000;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

/* Column 2: Search */
.sawerna-header__search-col {
  display: flex;
  align-items: center;
}

.sawerna-header__search-form {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  
}

.sawerna-header__search-input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
  height: 40px;
}

.sawerna-header__search-input:focus {
  outline: none;
  border-color: #000;
}

.sawerna-header__search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
}

.sawerna-header__search-submit:hover {
  color: #000;
}

.sawerna-header__search-submit svg {
  width: 20px;
  height: 20px;
  display: block;
}

.sawerna-header__search-submit svg .cls-1,
.sawerna-header__search-submit svg path,
.sawerna-header__search-submit svg line,
.sawerna-header__search-submit svg circle {
  stroke: currentColor;
  fill: none;
}

/* Column 3: Actions */
.sawerna-header__actions-col {
  flex-shrink: 0;
}

.sawerna-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sawerna-header__login-btn,
.sawerna-header__account-link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sawerna-header__login-btn:hover,
.sawerna-header__account-link:hover {
  color: #000;
}

.sawerna-header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sawerna-header__icon-btn:hover {
  color: #000;
}

.sawerna-header__icon-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.sawerna-header__icon-btn svg .cls-1,
.sawerna-header__icon-btn svg path,
.sawerna-header__icon-btn svg circle,
.sawerna-header__icon-btn svg polyline {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.45px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sawerna-header__icon-btn--cart {
  position: relative;
}

.sawerna-header__cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: rgb(149, 149, 95);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sawerna-header__cart-count:not(:empty) {
  min-width: 20px;
  padding: 0 6px;
}

.sawerna-header__cart-count:empty {
  display: none;
}

.sawerna-mini-cart-open {
  overflow: hidden;
}

.sawerna-mini-cart {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.sawerna-mini-cart[hidden] {
  display: none;
}

.sawerna-mini-cart__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}

.sawerna-mini-cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  outline: none;
}

.sawerna-mini-cart.is-open .sawerna-mini-cart__overlay {
  opacity: 1;
}

.sawerna-mini-cart.is-open .sawerna-mini-cart__panel {
  transform: translateX(0);
}

.sawerna-mini-cart__panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.sawerna-mini-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #ece7e0;
}

.sawerna-mini-cart__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #1f1f1f;
}

.sawerna-mini-cart__title-count {
  color: #9f978c;
  font-size: 13px;
  font-weight: 400;
}

.sawerna-mini-cart__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(2px);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.sawerna-mini-cart__close:hover {
  color: #7f765a;
  opacity: 0.9;
}

.sawerna-mini-cart__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 0 20px 20px;
}

.sawerna-mini-cart__items {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.sawerna-mini-cart__item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #efeae3;
  transition: opacity 0.2s ease;
}

.sawerna-mini-cart__item.is-updating {
  opacity: 0.55;
  pointer-events: none;
}

.sawerna-mini-cart__image-link {
  display: block;
  width: 132px;
  height: 132px;
}

.sawerna-mini-cart__image-link img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.sawerna-mini-cart__item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.sawerna-mini-cart__item-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sawerna-mini-cart__item-title {
  flex: 1;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.sawerna-mini-cart__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5c0b8;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.sawerna-mini-cart__remove svg {
  width: 19px;
  height: 19px;
}

.sawerna-mini-cart__remove svg path,
.sawerna-mini-cart__remove svg rect {
  fill: currentColor;
}

.sawerna-mini-cart__remove:hover {
  color: #111;
}

.sawerna-mini-cart__attributes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sawerna-mini-cart__attribute {
  margin: 0;
  color: #8b8479;
  font-size: 12px;
  line-height: 1.4;
}

.sawerna-mini-cart__attribute-label {
  color: #6f685f;
}

.sawerna-mini-cart__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.sawerna-mini-cart__quantity-controls {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ececec;
}

.sawerna-mini-cart__quantity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: rgb(244, 244, 244);
  color: #766f65;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sawerna-mini-cart__quantity-button:hover {
  background: rgb(233, 233, 233);
  color: #111;
}

.sawerna-mini-cart__quantity-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 36px;
  padding: 0 8px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
}

.sawerna-mini-cart__price {
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.sawerna-mini-cart__empty-message {
  margin: 0;
  padding: 36px 0;
  color: #6a6259;
  font-size: 14px;
}

.sawerna-mini-cart__summary {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 20px;
}

.sawerna-mini-cart__shipping-progress {
  padding: 16px;
  border: 1px solid #efeae3;
  background: #fff;
}

.sawerna-mini-cart__shipping-text {
  margin: 0 0 12px;
  color: #3d3a36;
  font-size: 14px;
  line-height: 1.4;
}

.sawerna-mini-cart__shipping-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: #ebe4da;
  overflow: hidden;
}

.sawerna-mini-cart__shipping-bar {
  display: block;
  height: 100%;
  background: #111;
}

.sawerna-mini-cart__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #1f1f1f;
}

.sawerna-mini-cart__subtotal-label {
  font-size: 14px;
  line-height: 1.4;
}

.sawerna-mini-cart__subtotal-value {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.sawerna-mini-cart__subtotal-value .woocommerce-Price-amount {
  font-size: inherit;
}

.sawerna-mini-cart__actions {
  display: grid;
  gap: 10px;
}

.sawerna-mini-cart__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sawerna-mini-cart__button--primary {
  background: #111;
  color: #fff;
}

.sawerna-mini-cart__button--secondary {
  background: #fff;
  color: #111;
}

.sawerna-mini-cart__button:hover {
  opacity: 0.92;
}

/* ============================================
   ROW 3: Mega Menu (Black Background)
   ============================================ */
.sawerna-header__row-3 {
  background: #000;
  color: #fff;
}

.sawerna-header__mega-menu-nav {
  padding: 0;
}

.sawerna-mega-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0;
}

.sawerna-mega-menu > li {
  position: relative;
}

.sawerna-mega-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.2s ease;
  white-space: nowrap;
 
}

/* Add Asset 4.svg icon next to menu items that have submenus */
.sawerna-mega-menu > li:has(.sub-menu) > a::after,
.sawerna-mega-menu > li > a .mega-menu-arrow-icon {
  content: '';
  display: inline-block;
  width: 10px;
  height: 6px;
  flex-shrink: 0;
}

.sawerna-mega-menu > li > a .mega-menu-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 6px;
  margin-left: 4px;
}

.sawerna-mega-menu > li > a .mega-menu-arrow-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sawerna-mega-menu > li > a .mega-menu-arrow-icon svg polyline {
  stroke: currentColor;
  fill: none;
}

/* Dropdown Submenu - Mega Menu Style */
.sawerna-header__row-3 {
  position: relative;
}

.sawerna-header__mega-menu-nav {
  position: relative;
}

.sawerna-mega-menu > li > .sub-menu,
.sawerna-mega-menu > li > .sawerna-mega-menu__standalone-html-block {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  width: 1200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 100;
  margin: 0;
  pointer-events: none;
}

.sawerna-mega-menu > li > .sub-menu {
  padding: 35px 50px 40px 50px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 320px));
  justify-content: start;
  column-gap: 48px;
  row-gap: 30px;
  align-items: start;
}

@media (min-width: 1237px) {
  .sawerna-mega-menu > li > .sub-menu {
    column-gap: 28px;
  }
}

.sawerna-mega-menu > li {
  position: static;
}

.sawerna-mega-menu > li:hover > a {
  background: rgba(255, 255, 255, 0.15);
}

.sawerna-mega-menu > li:hover > .sub-menu,
.sawerna-mega-menu > li:hover > .sawerna-mega-menu__standalone-html-block {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (max-width: 1236px) {
  .sawerna-mega-menu > li > .sub-menu,
  .sawerna-mega-menu > li > .sawerna-mega-menu__standalone-html-block {
    left: 18px;
    transform: translateX(0) translateY(-10px);
    width: calc(100vw - 36px);
  }
  
  .sawerna-mega-menu > li:hover > .sub-menu,
  .sawerna-mega-menu > li:hover > .sawerna-mega-menu__standalone-html-block {
    transform: translateX(0) translateY(0);
  }
}

.sawerna-mega-menu > li > .sub-menu > li {
  position: relative;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  padding-right: calc(50% + 32px);
  min-height: 360px;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li:not(.menu-item-has-html-block):not(.sawerna-mega-menu__html-block-slot) {
  width: auto;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.menu-item-has-html-block,
.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.sawerna-mega-menu__html-block-slot {
  position: absolute;
  top: 35px;
  right: 50px;
  width: calc(50% - 66px);
  max-width: calc(50% - 66px);
  margin: 0;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.menu-item-has-html-block > a,
.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.sawerna-mega-menu__html-block-slot > a {
  display: none;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.menu-item-has-html-block > .sawerna-html-block-dropdown,
.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.sawerna-mega-menu__html-block-slot > .sawerna-html-block-dropdown {
  position: static;
  width: 100%;
  max-width: none;
  transform: none;
  margin: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: clip;
}

.sawerna-mega-menu > li:hover > .sub-menu > li.menu-item-has-html-block > .sawerna-html-block-dropdown,
.sawerna-mega-menu > li:hover > .sub-menu > li.sawerna-mega-menu__html-block-slot > .sawerna-html-block-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.menu-item-has-html-block > .sawerna-html-block-dropdown > .sawerna-html-block-dropdown-inner,
.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.sawerna-mega-menu__html-block-slot > .sawerna-html-block-dropdown > .sawerna-html-block-dropdown-inner {
  padding: 0;
  overflow: clip;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu ul.products.quick-sale {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 16px;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu ul.products.quick-sale li.product {
  min-width: 0;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu ul.products.quick-sale .sawerna-product-card {
  gap: 8px;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu ul.products.quick-sale .sawerna-product-card__media {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu ul.products.quick-sale .sawerna-product-card__title {
  font-size: 12px;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu ul.products.quick-sale .sawerna-product-card__price {
  font-size: 13px;
}

.sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu ul.products.quick-sale .sawerna-product-card__delivery {
  font-size: 10px;
}

@media (max-width: 1236px) {
  .sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu {
    padding-right: 50px;
    min-height: 0;
  }

  .sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.menu-item-has-html-block,
  .sawerna-mega-menu > li.sawerna-mega-menu__item--has-html-block > .sub-menu > li.sawerna-mega-menu__html-block-slot {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }
}

.sawerna-mega-menu > li > .sub-menu > li > a {
  display: block;
  padding: 0 0 12px 0;
  margin-bottom: 12px;
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.sawerna-mega-menu > li > .sub-menu > li > a:hover {
  color: #000;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu {
  position: static !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: none !important;
  z-index: auto !important;
  grid-template-columns: none !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu li {
  display: block !important;
  margin-bottom: 10px;
  list-style: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 1 !important;
  visibility: visible !important;
  transition: color 0.2s ease;
  position: relative;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a:hover {
  color: #000;
  text-decoration: underline;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a .submenu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a .submenu-item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a .submenu-item-icon svg polyline,
.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a .submenu-item-icon svg .cls-1 {
  stroke: #333 !important;
  fill: none;
  stroke-width: 1px;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a:hover .submenu-item-icon svg polyline,
.sawerna-mega-menu > li > .sub-menu > li > .sub-menu a:hover .submenu-item-icon svg .cls-1 {
  stroke: #000 !important;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu .sub-menu {
  position: static !important;
  padding-left: 16px !important;
  margin-top: 8px !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu .sub-menu li {
  margin-bottom: 8px;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu .sub-menu a {
  font-size: 13px;
  color: #555;
}

.sawerna-mega-menu > li > .sub-menu > li > .sub-menu .sub-menu a:hover {
  color: #000;
}

/* ============================================
   Mobile Header (Hidden on desktop)
   ============================================ */
.sawerna-header__mobile {
  display: none;
  visibility: visible;
  opacity: 1;
}

.sawerna-header__mobile-overlay {
  display: none;
}

.sawerna-header__search-overlay {
  display: none;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
  .sawerna-header__row-1,
  .sawerna-header__row-2,
  .sawerna-header__row-3 {
    display: none !important;
  }

  .sawerna-header__mobile {
    display: block !important;
    background: #fff;
    color: #111;
    border-bottom: 1px solid #e5e5e5;
  }

  .sawerna-header__mobile .sawerna-header__container {
    padding: 0 10px;
  }

  .sawerna-header__mobile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 8px;
  }

  .sawerna-header__mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #111;
  }

  .sawerna-header__mobile-toggle-icon svg {
    width: 22px;
    height: 18px;
    display: block;
  }

  .sawerna-header__mobile-toggle-icon svg .cls-1,
  .sawerna-header__mobile-toggle-icon svg line,
  .sawerna-header__mobile-toggle-icon svg path {
    stroke: currentColor;
  }

  .sawerna-header__mobile-logo {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 120px;
  }

  .sawerna-header__mobile-logo .custom-logo-link {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    max-width: 100%;
    flex: 0 0 auto;
    color: #111;
  }

  .sawerna-header__mobile-logo .custom-logo-link img,
  .sawerna-header__mobile-logo .custom-logo-link svg {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: 40px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .sawerna-header__mobile-logo .custom-logo-link img.custom-logo,
  .sawerna-header__mobile-logo .custom-logo-link img[src*=".svg"],
  .sawerna-header__mobile-logo .custom-logo-link svg {
    max-width: clamp(125px, 40vw, 200px);
    max-height: clamp(28px, 7vw, 40px);
    width: clamp(125px, 40vw, 200px) !important;
    height: clamp(28px, 7vw, 40px) !important;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .sawerna-header__mobile-logo .custom-logo-link svg path,
  .sawerna-header__mobile-logo .custom-logo-link svg .cls-1 {
    fill: currentColor !important;
    stroke: none !important;
  }

  .sawerna-header__mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .sawerna-header__mobile-actions .sawerna-header__icon-btn {
    width: 32px;
    height: 32px;
    color: #111;
  }

  .sawerna-header__mobile-actions .sawerna-header__icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .sawerna-header__mobile-actions .sawerna-header__cart-count {
    border: 2px solid #fff;
  }

  .sawerna-mini-cart__panel {
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    box-shadow: none;
    transform: translateX(100%);
  }

  .sawerna-mini-cart__header {
    padding: 18px 18px 16px;
  }

  .sawerna-mini-cart__panel-inner {
    overflow: hidden;
  }

  .sawerna-mini-cart__body {
    padding: 0;
    overflow: hidden;
  }

  .sawerna-mini-cart__items {
    padding: 0 18px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .sawerna-mini-cart__item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .sawerna-mini-cart__image-link {
    width: 96px;
    height: 96px;
  }

  .sawerna-mini-cart__item-title {
    font-size: 16px;
  }

  .sawerna-mini-cart__item-bottom {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .sawerna-mini-cart__subtotal-value {
    font-size: 22px;
  }

  .sawerna-mini-cart__summary {
    flex-shrink: 0;
    gap: 16px;
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid #ece7e0;
    background: #fff;
    box-shadow: 0 -10px 24px rgba(17, 17, 17, 0.06);
  }

  .sawerna-mini-cart__shipping-progress {
    padding: 14px;
  }

  .sawerna-header__mobile-search {
    padding-bottom: 8px;
  }

  .sawerna-header__mobile-search .sawerna-header__search-form {
    max-width: none;
  }

  .sawerna-header__mobile-search .sawerna-header__search-input {
    height: 38px;
    padding: 10px 44px 10px 14px;
    font-size: 14px;
    border-radius: 20px;
    background: #f7f7f7;
    border-color: #e5e5e5;
  }

  .sawerna-header__mobile-search .sawerna-header__search-input:focus {
    background: #fff;
  }

  .sawerna-header__mobile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0 12px;
    color: #666;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .sawerna-header__mobile-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
  }

  .sawerna-header__mobile-info-icon svg {
    width: 12px;
    height: 12px;
    display: block;
  }

  .sawerna-header__mobile-info-icon svg path {
    fill: currentColor;
    stroke: none;
  }

  .sawerna-header__mobile-info-icon svg .cls-1,
  .sawerna-header__mobile-info-icon svg polyline,
  .sawerna-header__mobile-info-icon svg line {
    stroke: currentColor;
    fill: none;
  }

  .sawerna-header__mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .sawerna-header__mobile-overlay:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .sawerna-header__mobile-overlay-inner {
    padding: 16px 20px 32px;
    max-width: 640px;
    margin: 0 auto;
  }

  .sawerna-header__mobile-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 12px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 12px;
  }

  .sawerna-header__mobile-language-nav {
    flex: 1;
  }

  .sawerna-mobile-language-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .sawerna-mobile-language-menu a {
    color: #111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .sawerna-header__mobile-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    color: #111;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sawerna-header__mobile-close-icon svg {
    width: 16px;
    height: 16px;
    display: block;
  }

  .sawerna-header__mobile-main-nav {
    margin-bottom: 16px;
  }

  .sawerna-mobile-menu--main,
  .sawerna-mobile-topbar {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sawerna-mobile-menu--main ul,
  .sawerna-mobile-menu--main ol {
    margin: 0;
    padding-left: 0;
  }

  .sawerna-mobile-menu--main > li {
    position: relative;
    border-bottom: 1px solid #eaeaea;
  }

  .sawerna-mobile-menu--main > li.is-open {
    background: transparent;
  }

  .sawerna-mobile-menu--main > li > a {
    display: flex;
    align-items: center;
    padding: 12px 14px 12px 0;
    color: #111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    background-image: none !important;
    gap: 8px;
  }

  .sawerna-mobile-menu__parent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .sawerna-mobile-menu__parent-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .sawerna-mobile-menu__parent-icon svg polyline {
    stroke: currentColor;
    fill: none;
  }

  .sawerna-mobile-menu__leaf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 12px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .sawerna-mobile-menu__leaf-icon svg {
    width: 100%;
    height: 70%;
    display: block;
  }

  .sawerna-mobile-menu__leaf-icon svg polyline {
    stroke: currentColor;
    fill: none;
  }

  .sawerna-mobile-menu__submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 10px;
    flex-shrink: 0;
  }

  .sawerna-mobile-menu__submenu-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .sawerna-mobile-menu__submenu-icon svg polyline,
  .sawerna-mobile-menu__submenu-icon svg line {
    stroke: currentColor;
    fill: none;
  }

  .sawerna-mobile-menu--main > li > a::before,
  .sawerna-mobile-menu--main > li > a::after {
    content: none !important;
  }

  .sawerna-mobile-menu--main > li > .sawerna-mobile-menu__toggle {
    display: none !important;
  }

  .sawerna-mobile-menu--main > li > .sub-menu {
    list-style: none;
    margin: 0;
   
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    position: relative;
  }

  .sawerna-mobile-menu--main > li.is-open > .sub-menu {
    max-height: 1000px;
    opacity: 1;
    background: rgb(241, 241, 241);
    padding-left: 10px;
    padding-top: 5px;
  }

  .sawerna-mobile-menu--main > li > .sub-menu > li > .sub-menu {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }

  .sawerna-mobile-menu--main .sub-menu li {
    position: relative;
  }

  .sawerna-mobile-menu--main .sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 0;
  }

  .sawerna-mobile-menu--main .sub-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px 28px 8px 0;
    color: black;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }

  .sawerna-mobile-menu--main > li > .sub-menu > li > a {
    padding-right: 44px;
  }

  .sawerna-mobile-menu--main .sub-menu .sub-menu {
    padding-left: 0;
  }

  .sawerna-mobile-menu--main .sub-menu .sub-menu a {
    font-size: 13px;
    color: #555;
    font-weight: 400;
  }

  .sawerna-mobile-menu__item-icon svg {
    width: 8px;
    height: 8px;
    display: block;
    margin-left: 5px;
  }

  .sawerna-mobile-menu__item-icon svg .cls-1,
  .sawerna-mobile-menu__item-icon svg polyline {
    stroke: currentColor;
    fill: none;
  }

  .sawerna-mobile-submenu-close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 14px;
    height: 14px;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    padding: 0;
    z-index: 2;
  }

  .sawerna-mobile-submenu-close svg {
    width: 8px;
    height: 8px;
    display: block;
  }

  .sawerna-header__mobile-overlay-info {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    margin: -10px 0 15px 0;
  }

  .sawerna-header__mobile-overlay-info .sawerna-header__mobile-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sawerna-header__mobile-user {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
  }

  .sawerna-header__mobile-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }

  .sawerna-header__mobile-user-link svg {
    width: 18px;
    height: 18px;
  }

  .sawerna-mobile-topbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sawerna-mobile-topbar a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }

  .sawerna-mobile-topbar__icon svg {
    width: 12px;
    height: 12px;
    display: block;
  }

  .sawerna-mobile-topbar__icon svg .cls-1,
  .sawerna-mobile-topbar__icon svg line,
  .sawerna-mobile-topbar__icon svg polyline {
    stroke: currentColor;
    fill: none;
  }
}
