/* Ported from Header.styled.ts, HeaderActions.tsx, NavList.styled.ts, Drawer.tsx, Lightheme.ts */

:root {
  --announcement-bar-height: 0px;
}

.site-header {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-height: calc(var(--announcement-bar-height, 0px) + 70px);
  overflow-x: clip;
}

.site-header.site-header--has-announcement {
  --announcement-bar-height: 33.5px;
}

.site-header.site-header--no-announcement {
  --announcement-bar-height: 0px;
}

@media (max-width: 599.95px) {
  /* Live mobile toolbar paints at 35px height but keeps min-height 56px */
  .site-header {
    min-height: calc(var(--announcement-bar-height, 0px) + 56px);
  }
}

.ComponentWrapper[data-name="Header"] {
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

.MuiToolbar-root.StyledToolBar {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 70px;
  min-height: 56px;
  padding: 15px 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  will-change: transform, backdrop-filter, box-shadow;
  transition:
    top 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    backdrop-filter 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    -webkit-backdrop-filter 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.MuiToolbar-root.StyledToolBar--overlay {
  background-color: rgba(0, 0, 0, 0.25);
}

@media (min-width: 600px) {
  .MuiToolbar-root.StyledToolBar {
    min-height: 64px;
  }
}

@media (max-width: 599.95px) {
  .MuiToolbar-root.StyledToolBar {
    height: 35px;
    /* Clearance from live skeidar.no .css-14ezljj / .css-1w7b8k3 */
    padding: 0 20px;
    overflow: hidden;
  }
}

.StyledToolbarContentWrapperStack {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.header-actions-root {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.header-actions-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 18px;
}

@media (max-width: 599.95px) {
  .header-actions-left {
    gap: 12px;
    /* Reserve center band for the absolute logo (160px) so icons never collide */
    max-width: calc(50% - 84px);
  }
}

@media (min-width: 1536px) {
  .header-actions-left {
    gap: 33px;
  }
}

.header-actions-right {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  gap: 18px;
}

@media (max-width: 599.95px) {
  .header-actions-right {
    height: auto;
    gap: 12px;
    max-width: calc(50% - 84px);
  }
}

@media (min-width: 900px) {
  .header-actions-right {
    gap: 12px;
  }
}

@media (min-width: 1536px) {
  .header-actions-right {
    gap: 25px;
  }
}

.header-icon-btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
  line-height: 0;
}

.header--overlay .header-icon-btn,
.header--overlay .header-action-item,
.header--overlay .navListWrapper .MuiTypography-paragraphSmall,
.header--overlay .header-search .MuiInputBase-input,
.header--overlay .header-search .MuiInputBase-input::placeholder {
  color: #ffffff;
}

.header--overlay .header-search {
  border-bottom-color: #ffffff;
}

.header-icon-btn svg {
  display: block;
}

.header-icon-btn--menu svg {
  width: 23px;
  height: 14px;
}

.header-icon-btn--responsive {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn--responsive svg {
  width: 1em;
  height: 1em;
  font-size: 19px;
}

.header-action-icon {
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
}

@media (min-width: 600px) {
  .header-icon-btn--responsive svg {
    font-size: 20px;
  }

  .header-action-icon {
    width: 20px;
    height: 20px;
  }
}

.header-action-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: #db4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header-action-badge:not(:empty) {
  display: inline-flex;
}

@media (max-width: 599.95px) {
  .header-action-badge {
    top: -5px;
    right: -8px;
    min-width: 8px;
    width: 8px;
    height: 8px;
    padding: 0;
  }

  .header-action-badge:not(:empty) {
    font-size: 0;
  }
}

.header-logo-mobile {
  pointer-events: auto;
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 600px) {
  .header-logo-mobile {
    display: none;
  }
}

.header-logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  pointer-events: none;
}

@media (min-width: 600px) {
  .header-logo-center {
    display: flex;
  }
}

.header-logo-center__link,
.header-logo-mobile__link {
  pointer-events: auto;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.header-logo-center__img,
.header-logo-mobile__img {
  display: block;
  width: 160px;
  height: 17px;
  object-fit: contain;
}

/* Live skeidar.no keeps 160×17 on mobile; side columns are capped so icons stay clear */

.navListWrapper {
  width: 100%;
  display: none;
  justify-content: flex-end;
}

@media (min-width: 900px) {
  .navListWrapper {
    display: flex;
  }
}

.StylesNavListWrapperStack {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 13px;
  width: 100%;
}

@media (min-width: 1536px) {
  .StylesNavListWrapperStack {
    gap: 20px;
  }
}

.navListWrapper .MuiTypography-paragraphSmall {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  font-weight: 400;
  color: #000000;
}

.navListWrapper .MuiTypography-paragraphSmall a,
.navListWrapper .header-nav-link {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.navListWrapper .MuiTypography-paragraphSmall a:hover,
.navListWrapper .header-nav-link:hover {
  opacity: 0.5;
}

/* Live keeps the hamburger visible on every breakpoint, left of the nav links. */
.header-icon-btn--menu {
  display: inline-flex;
}

@media (max-width: 599.95px) {
  .navListWrapper .MuiTypography-paragraphSmall {
    font-size: 0.75rem;
  }
}

.StyledHeaderSearchInputWrapperBox--mobile {
  margin-right: 0;
  /* width:100% made the search column overflow into the absolute centered logo */
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  display: block;
}

@media (min-width: 900px) {
  .StyledHeaderSearchInputWrapperBox--mobile {
    display: none;
  }
}

.StyledHeaderSearchInputWrapperBox--desktop {
  margin-right: 18px;
  max-width: 200px;
  width: 100%;
  display: none;
}

@media (min-width: 900px) {
  .StyledHeaderSearchInputWrapperBox--desktop {
    display: block;
  }
}

@media (min-width: 1536px) {
  .StyledHeaderSearchInputWrapperBox--desktop {
    margin-right: 20px;
  }
}

.header-search {
  position: relative;
  width: 100%;
  max-width: 200px;
}

.header-search__mobile-trigger {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

@media (min-width: 900px) {
  .header-search__mobile-trigger {
    display: none;
  }
}

.header-search__desktop {
  display: none;
}

@media (min-width: 900px) {
  .header-search__desktop {
    display: block;
  }
}

.header-search .MuiInputBase-root.previewSearch {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 200px;
  height: 100%;
  background: transparent;
  border-radius: 0;
  font-size: 16px;
  line-height: 23px;
  padding: 7px;
  letter-spacing: 1px;
  border-bottom: 1px solid #000000;
}

.header-search .MuiInputBase-input {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 1px;
  color: #000000;
  outline: none;
}

.header-search .MuiInputBase-input::placeholder {
  color: #000000;
  opacity: 1;
}

.header-search__icon-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  line-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.header-search__icon-btn svg {
  width: 1em;
  height: 1em;
  font-size: 18px;
}

@media (min-width: 900px) {
  .header-search__icon-btn svg {
    font-size: 20px;
  }
}

.header-action-item {
  display: none;
  height: 100%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: #000000;
  border: 0;
  background: transparent;
  padding: 0;
}

.header-action-item--visible {
  display: flex;
}

@media (min-width: 900px) {
  .header-action-item--md {
    display: flex;
    justify-content: center;
  }
}

/* Drawer — ported from Drawer.tsx */
.MuiDrawer-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  pointer-events: none;
}

.MuiDrawer-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

.MuiBackdrop-root {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.MuiDrawer-root.is-open .MuiBackdrop-root {
  opacity: 1;
}

.MuiDrawer-paper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 88%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background-color: #ffffff !important;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.MuiDrawer-root.is-open .MuiDrawer-paper {
  transform: translateX(0);
}

@media (min-width: 900px) {
  .MuiDrawer-paper {
    width: auto;
    min-width: 488px;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  min-height: 36px;
  position: relative;
}

.drawer-header__logo img {
  display: block;
  width: 159px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 899.95px) {
  .drawer-header {
    padding: 0 24px;
  }

  .drawer-header__logo img {
    width: 108px;
    height: 14px;
  }
}

.drawer-close-btn {
  position: absolute;
  right: 0;
  top: 0;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  color: #000000;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 12px;
}

@media (max-width: 899.95px) {
  .drawer-content {
    padding: 0;
  }
}

.drawer-panels {
  position: relative;
  width: 100%;
  min-height: 100%;
}

.drawer-panel {
  display: none;
  width: 100%;
}

.drawer-panel.is-active {
  display: block;
}

.drawer-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 48px;
}

.drawer-panel__title {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
}

.drawer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  color: #000000;
  cursor: pointer;
}

.drawer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
}

.drawer-menu-list a,
.drawer-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.drawer-menu-list a:hover,
.drawer-menu-link:hover {
  font-weight: 500;
}

/* Branch row: label and chevron are separate targets on one line. */
.drawer-menu-item {
  display: flex;
  align-items: center;
}

.drawer-menu-item .drawer-menu-link {
  flex: 1 1 auto;
  min-width: 0;
}

.drawer-menu-drill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Wide enough to hit with a thumb without changing the row height. */
  width: 44px;
  min-height: 44px;
  /* Pulls the chevron back to the row's right edge, since the button is wider than the icon. */
  margin-right: -13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
}

/* Utility links at the foot of the drawer — secondary to the product menu above. */
.drawer-utility-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-utility-link {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: #000000;
  text-decoration: none;
  font-size: 14px;
}

.drawer-utility-link:hover {
  font-weight: 500;
}

/* Desktop mega-menu — live skeidar.no columnar drill-down */
.header-mega {
  position: fixed;
  inset: 0;
  z-index: 1250;
  visibility: hidden;
  pointer-events: none;
}

.header-mega.is-open {
  visibility: visible;
  pointer-events: auto;
}

.header-mega__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.header-mega__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(78vw, 1000px);
  max-width: 100%;
  background: #ffffff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  padding: 24px 40px 48px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(-16px);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.header-mega.is-open .header-mega__panel {
  opacity: 1;
  transform: translateX(0);
}

.header-mega__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-mega__logo img {
  display: block;
  width: 160px;
  height: 17px;
  object-fit: contain;
}

.header-mega__close {
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  line-height: 0;
  color: #000000;
}

.header-mega__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-mega__primary-link {
  border: 0;
  background: transparent;
  padding: 0 0 4px;
  margin: 0;
  font: inherit;
  font-size: 15px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.header-mega__primary-link:hover {
  opacity: 0.6;
}

.header-mega__primary-link.is-active {
  font-weight: 500;
}

.header-mega__primary-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
}

.header-mega__columns {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex: 1;
}

.header-mega__column {
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 240px;
}

.header-mega__heading {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 16px;
}

/* The column heading is a link to the section itself, styled as a heading rather than a link. */
.header-mega__heading-link {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.header-mega__heading-link:hover,
.header-mega__heading-link:focus-visible {
  text-decoration: underline;
}

/* The branch whose column is currently open, so it is clear which one the panel belongs to. */
.header-mega__link--open {
  opacity: 0.55;
}

.header-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #000000;
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.header-mega__link:hover {
  opacity: 0.55;
}

.header-mega__link--branch svg {
  flex: 0 0 auto;
  opacity: 0.7;
}

@media (max-width: 899.95px) {
  .header-mega {
    display: none;
  }
}

/* Search modal — matching live sitecore / skeidar.no layout */
html.search-is-open,
body.search-is-open {
  overflow: hidden !important;
}

.search-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1300;
  visibility: hidden;
  pointer-events: none;
}

.search-modal-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-modal-root.is-open .search-modal-backdrop {
  opacity: 1;
}

.search-modal-paper {
  position: fixed;
  top: calc(var(--announcement-bar-height, 0px) + 70px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100vh - (var(--announcement-bar-height, 0px) + 70px));
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 24px 48px 48px 48px;
  box-sizing: border-box;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-modal-root.is-open .search-modal-paper {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 899.95px) {
  .search-modal-paper {
    top: 0;
    padding: 16px 20px 32px 20px;
    max-height: 100vh;
  }
}

.search-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}

@media (min-width: 900px) {
  .search-modal-close {
    display: none;
  }
}

.search-modal-close:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Action icons, profile menu and search overlay.
   The icons are CMS media now, so they are sized here to the same optical size
   the inline SVGs used to be, and tinted only where the overlay header needs it.
   --------------------------------------------------------------------------- */

/* Quantity badge on the cart icon. Empty until a basket count feeds it, and an empty badge
   paints nothing - the same shape the live header ships. */
.header-action-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #af1e2d;
  color: #ffffff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}

.header-action-badge:empty {
  display: none;
}

.header-icon-btn--responsive {
  position: relative;
}

.header-search__glyph {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

@media (min-width: 600px) {
  .header-search__glyph {
    width: 20px;
    height: 20px;
  }
}

.header-action-icon {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

@media (min-width: 600px) {
  .header-action-icon {
    width: 20px;
    height: 20px;
  }
}

/* The overlay header sits on a dark hero, where dark artwork would disappear. */
.header--overlay .header-action-icon {
  filter: brightness(0) invert(1);
}

.header-profile {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.header-profile__menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 1300;
  min-width: 220px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-profile__menu[hidden] {
  display: none;
}

.header-profile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.header-profile__list li + li {
  border-top: 1px solid #e5e1dc;
}

.header-profile__link {
  display: block;
  padding: 12px 0;
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}

.header-profile__link:hover,
.header-profile__link:focus-visible {
  text-decoration: underline;
}

.header-profile__logout {
  display: block;
  padding: 14px 24px;
  background: #000000;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-profile__logout:hover,
.header-profile__logout:focus-visible {
  background: #2b2b2b;
}

/* Search Modal Form & Layout - Matching Live Sitecore */
.search-modal-section {
  display: none;
}

.search-modal-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 0 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.search-modal-form__icon {
  display: flex;
  align-items: center;
  color: #000000;
  flex: 0 0 auto;
}

.search-modal-form__icon svg,
.search-modal-form__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.search-modal-form .MuiInputBase-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-family: inherit;
  font-size: 18px;
  color: #000000;
  outline: none;
}

.search-modal-form .MuiInputBase-input::-webkit-search-cancel-button,
.search-modal-form .MuiInputBase-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-modal-form .MuiInputBase-input::placeholder {
  color: #757575;
  opacity: 1;
}

.search-modal-clear {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  color: #757575;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-modal-clear:hover {
  color: #000000;
}

/* Modal Body Layout */
.search-modal-body {
  display: flex;
  flex-direction: row;
  gap: 48px;
  margin-top: 24px;
  align-items: flex-start;
}

@media (max-width: 899.95px) {
  .search-modal-body {
    flex-direction: column;
    gap: 24px;
  }
}

/* Sidebar (Left Column) */
.search-sidebar {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 899.95px) {
  .search-sidebar {
    flex: none;
    width: 100%;
  }
}

.search-sidebar-section {
  display: flex;
  flex-direction: column;
}

.search-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #757575;
  margin-bottom: 12px;
}

.search-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.search-sidebar-link {
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  transition: color 0.15s ease;
  flex: 1;
}

.search-sidebar-link:hover {
  text-decoration: underline;
  color: #555555;
}

.search-sidebar-remove {
  background: none;
  border: none;
  padding: 4px;
  margin-left: 8px;
  cursor: pointer;
  color: #888888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.search-sidebar-remove:hover {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.05);
}

.search-sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-sidebar-chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  color: #333333;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.15s ease;
}

.search-sidebar-chip:hover {
  border-color: #000000;
  color: #000000;
  background: #f9f9f9;
}

/* Content Area (Right Column) */
.search-content {
  flex: 1;
  min-width: 0;
}

.search-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-content-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #757575;
}

.search-content-see-all {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  text-decoration: underline;
}

.search-content-see-all:hover {
  color: #555555;
}

.search-content-empty {
  padding: 32px 0;
  font-size: 15px;
  color: #757575;
}

/* 4-Column Product Grid */
.search-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
}

@media (max-width: 1200px) {
  .search-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899.95px) {
  .search-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .search-product-grid {
    grid-template-columns: 1fr;
  }
}

.search-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.search-product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f7f7f7;
  overflow: hidden;
}

.search-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.search-product-card:hover .search-product-img {
  transform: scale(1.03);
}

.search-product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.search-product-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 2px;
}

.search-product-badge--discount {
  background: #e0e0e0;
  color: #000000;
}

.search-product-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.search-product-wishlist-btn:hover {
  opacity: 1;
}

.search-product-variants {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #555555;
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 4px;
  border-radius: 2px;
}

.search-product-brand {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #757575;
  text-transform: uppercase;
}

.search-product-info {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.search-product-category {
  font-size: 12px;
  color: #757575;
  line-height: 1.3;
}

.search-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-top: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-product-prices {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.search-product-old-price {
  text-decoration: line-through;
  color: #757575;
  font-weight: 400;
}

.search-product-price--danger {
  color: #e53935;
}

.search-product-member-price {
  font-size: 12px;
  color: #2e7d32;
  margin-top: 2px;
}

.search-content-footer {
  margin-top: 24px;
  text-align: center;
}
