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

footer.footer {
  background-color: var(--main);
  color: var(--white);
}
footer.footer,
footer.footer p,
footer.footer a,
footer.footer .footer-heading,
footer.footer .footer-menu_item,
footer.footer .footer-address,
footer.footer .footer-info,
footer.footer .text-caption-1,
footer.footer .text-secondary,
footer.footer .text-secondary-2 {
  color: var(--white);
}
footer.footer a:hover,
footer.footer .footer-menu_item:hover {
  color: var(--primary);
}
footer.footer .footer-wrap,
footer.footer .footer-bottom-wrap {
  border-top-color: rgba(255, 255, 255, 0.12);
}
footer.footer .logo-header img {
  filter: invert(1) brightness(2);
}
footer.footer .subscribe-content {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
footer.footer .subscribe-email,
footer.footer .subscribe-email::placeholder {
  color: var(--white);
}
footer.footer .subscribe-button {
  background-color: var(--white);
  color: var(--main);
}
footer.footer .subscribe-button i {
  color: var(--main);
}
footer.footer .tf-checkbox-wrapp .icon-check {
  color: var(--main);
}
footer.footer .image-select,
footer.footer .bootstrap-select .filter-option-inner-inner,
footer.footer .bootstrap-select .dropdown-toggle {
  color: var(--white) !important;
  background-color: transparent !important;
}
footer.footer .bootstrap-select .dropdown-toggle::after {
  border-top-color: var(--white);
}

footer.footer .subscribe-email {
  background-color: transparent !important;
}
@media (max-width: 991px) {
  .logo-header img {
    height: 48px;
    max-height: 48px;
  }
}

/* Submenu hover bridge: keeps `.menu-item:hover` active while the cursor
   crosses the gap from the parent link into the dropdown. Pointer-events
   only enable on hover so the bridge never blocks normal page clicks. */
.box-nav-ul .menu-item .item-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 100px;
  pointer-events: none;
  width: 400px;
  margin-left: -100px;
}
.box-nav-ul .menu-item:hover .item-link::before {
  pointer-events: auto;
}

.form-newsletter .tf-btn:not(.btn-reset):after {
  background-color: transparent;
}

.btn-contrast.tf-btn:not(.btn-reset)::after {
  display: none;
}

.price-check.tf-btn{
    border-radius: 5px;
}
.btn-contrast.tf-btn:hover {
  color: var(--main);
  background-color: var(--white);
}

.cart-view-check.tf-btn.btn-white:hover {
  color: var(--white);
  background-color: var(--primary);
}

.wg-quantity .btn-quantity {
  color: var(--white);
}

.wg-quantity .btn-quantity.cart-page-btn-quantity {
  color: var(--main);
}

.wg-quantity .btn-quantity.cart-page-btn-quantity:hover {
  color: var(--primary);
}

/* "View all" pill buttons combine .tf-btn (padding 15px 32px) with .btn-line,
   whose padding-bottom: 4px (room for its hover underline) leaves the label
   sitting low in the pill. Restore symmetric vertical padding so it centers. */
.tf-btn.btn-line {
  padding-bottom: 15px;
}

/* /brands — tile chrome
   Logos arrive as PNGs with varied internal padding. cover stretched them
   inconsistently. contain + standardized tile padding + a subtle hover lift
   makes the grid read as a curated wall, not a spreadsheet. */
.brand-box {
  background-color: #fff;
  border: 1px solid rgba(24, 24, 24, 0.06);
  border-radius: 8px;
  padding: 24px 20px;
  min-height: 120px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.brand-box img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain !important;
}
.brand-box .brand-name {
  font-size: 18px;
  color: var(--main);
}

/* /my-account — dense settings panel (v2).
   v1 inherited marketing-page sizing: 140px avatar, 60px nav pills, 48px
   inputs, 100px peach hero, two separate form cards. Read as chaotic on an
   app page. v2 is Stripe/Linear settings: one panel, slim sidebar, tight
   grid, single page header bar instead of a hero. */

/* Container + page header */
.account-section {
  padding-top: 24px;
  padding-bottom: 64px;
}
.account-shell {
  max-width: 1080px;
}
.account-page-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.account-page-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--main);
}
.account-page-subtitle {
  font-size: 13px;
  color: var(--secondary);
  margin: 0;
}

/* 2-column shell: slim sidebar + content */
.my-account-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.my-account-wrap .my-account-content {
  flex: 1;
  min-width: 0;
}
.my-account-wrap .wrap-sidebar-account {
  width: 240px;
  flex-shrink: 0;
}

/* Sidebar — compact card */
.sidebar-account {
  background-color: var(--surface);
  border-radius: 12px;
  padding: 16px;
}
.sidebar-account .account-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.sidebar-account .account-avatar .image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 10px;
}
.account-avatar-initials {
  background-color: var(--main);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  width: 100%;
  height: 100%;
}
.account-avatar-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 2px;
}
.sidebar-account .account-avatar .body-text-1 {
  font-size: 12px;
  color: var(--secondary);
  word-break: break-all;
}

/* Nav items — slim rows */
.sidebar-account .my-account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-account .my-account-nav .my-account-nav-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 8px;
  color: var(--main);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-account .my-account-nav .my-account-nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}
.sidebar-account .my-account-nav .my-account-nav-item:hover {
  background-color: rgba(24, 24, 24, 0.04);
}
.sidebar-account .my-account-nav .my-account-nav-item:hover svg {
  color: var(--main);
}
.sidebar-account .my-account-nav .my-account-nav-item.active {
  background-color: var(--main);
  color: var(--white);
}
.sidebar-account .my-account-nav .my-account-nav-item.active svg {
  color: var(--white);
}
.my-account-nav-divider {
  height: 1px;
  background-color: var(--line);
  margin: 6px 0;
}
.my-account-nav-item--logout {
  color: var(--secondary);
}
.my-account-nav-item--logout:hover {
  background-color: rgba(240, 62, 62, 0.08);
  color: var(--critical);
}
.my-account-nav-item--logout:hover svg {
  color: var(--critical);
}
.my-account-nav-item__logout-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.my-account-nav-item__logout-btn:focus-visible {
  outline: 2px solid var(--critical);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Content panel — one card, sectioned */
.account-panel {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
}
.account-panel .account-section {
  padding: 24px;
}
.account-section-divider {
  height: 1px;
  background-color: var(--line);
  margin: 0;
}
.account-section-head {
  margin-bottom: 16px;
}
.account-section-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px;
  color: var(--main);
}
.account-section-hint {
  font-size: 12px;
  color: var(--secondary);
  margin: 0;
  line-height: 1.4;
}

/* Field grid */
.account-grid {
  display: grid;
  gap: 14px;
}
.account-grid--2 {
  grid-template-columns: 1fr 1fr;
}
.account-grid--1 {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  .account-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Labels */
.field-with-label {
  display: block;
  min-width: 0;
}
.field-with-label .field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--secondary);
  margin-bottom: 5px;
}
.field-with-label .field-label span[aria-hidden="true"] {
  color: var(--critical);
  margin-left: 2px;
}

/* Inputs — tighter */
.account-panel .account-grid input,
.account-panel .account-grid select {
  height: 38px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: var(--white);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.account-panel .account-grid input:focus,
.account-panel .account-grid select:focus,
.account-panel .account-grid input:focus-visible,
.account-panel .account-grid select:focus-visible {
  outline: none;
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(24, 24, 24, 0.08);
}
.account-panel .tf-select {
  position: relative;
}
.account-panel .tf-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234d4e4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Password toggle inside input */
.form-has-password .toggle-password {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  right: 2px;
  padding: 0;
  color: var(--secondary);
}
.form-has-password .toggle-password:hover {
  background-color: var(--surface);
  color: var(--main);
}
.form-has-password .toggle-password:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 2px;
}
.account-panel .input-password {
  padding-right: 44px;
}

/* Action row */
.account-section-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--main);
  background-color: var(--main);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.account-btn:hover {
  background-color: var(--white);
  color: var(--main);
}
.account-btn:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 2px;
}
.account-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile + tablet: stack sidebar above, chip nav strip */
@media (max-width: 991.98px) {
  .my-account-wrap {
    flex-direction: column;
    gap: 16px;
  }
  .my-account-wrap .wrap-sidebar-account {
    display: block;
    width: 100%;
  }
  .sidebar-account {
    padding: 12px;
  }
  .sidebar-account .account-avatar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    text-align: left;
  }
  .sidebar-account .account-avatar .image {
    width: 40px;
    height: 40px;
    margin: 0;
    flex-shrink: 0;
  }
  .account-avatar-initials {
    font-size: 14px;
  }
  .sidebar-account .my-account-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    margin: 0 -12px;
    padding: 0 12px 4px;
    scrollbar-width: none;
  }
  .sidebar-account .my-account-nav::-webkit-scrollbar {
    display: none;
  }
  .sidebar-account .my-account-nav > li {
    flex-shrink: 0;
  }
  .my-account-nav-divider {
    display: none;
  }
  .sidebar-account .my-account-nav .my-account-nav-item {
    padding: 8px 12px;
    border-radius: 999px;
    background-color: var(--white);
    white-space: nowrap;
    min-height: 36px;
  }
  .account-panel .account-section {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .account-section {
    padding-top: 12px;
    padding-bottom: 32px;
  }
  .account-section-actions {
    justify-content: stretch;
  }
  .account-btn {
    width: 100%;
  }
}
.collection-position-2:has(.brand-box):hover .brand-box,
.brand-box:hover {
  border-color: rgba(24, 24, 24, 0.18);
  box-shadow: 0 6px 20px rgba(24, 24, 24, 0.06);
  transform: translateY(-2px);
}
.hover-img:has(.brand-box):hover .img-style > img {
  transform: none;
}

/* /brands — pagination
   Default Laravel paginator landed with Tailwind dark: classes that clashed
   with the modave theme. Replaced with site's own .wg-pagination markup. */
.brands-pagination {
  margin-top: 48px;
}
.brands-pagination .pagination-item {
  text-decoration: none;
  color: var(--main);
}
.brands-pagination li.disabled .pagination-item {
  opacity: 0.4;
  cursor: not-allowed;
}

/* /shop — pagination sits outside .tf-grid-layout, so the theme's grid-gap
   spacing never reaches it and it butts against the last product row.
   Match the brands listing's separation. */
.wrapper-control-shop > .wg-pagination {
  margin-top: 48px;
}

/* /brands — tighter page-title bar.
   260px tall hero on a directory page wasted real estate before the user even
   reaches the catalog. Tightened to ~160px while keeping breadcrumb rhythm. */
.page-title.page-title--brands {
  padding: 40px 0 36px;
}
.page-title.page-title--brands .heading {
  margin-bottom: 8px;
}

/* /brands — brand count, sits between breadcrumb and grid as a quiet anchor. */
.brands-count {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

/* Header icons — touch target.
   Header icon hit-area was the SVG's 24x24 box. Tapping on mobile required
   pixel-perfect aim. Pad to 44x44 so the surrounding link is the target. */
#header .nav-icon .nav-icon-item {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

/* Add-to-cart button: border for contrast on white surfaces */
.btn-add-to-cart {
  border: 1px solid var(--main);
}
.btn-add-to-cart:hover {
  border-color: var(--primary);
}

/* Account dropdown hover bridge.
   The dropdown sits 28px below the icon (top: calc(100% + 28px)), leaving a
   physical gap. Moving the cursor diagonally toward the wider dropdown left the
   hover area and closed the menu. Fill the gap with an invisible full-width
   bridge so the hover surface between icon and dropdown is continuous. */
.nav-account .dropdown-account::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 28px;
}

/* Collections and Brands filters: cap each list to ~8 items and scroll the
   rest. Both lists can hold 80+ entries; each row is ~38px tall including
   margins, so 8 rows ≈ 304px. */
.facet-categories .facet-content,
.facet-fieldset .box-fieldset-item {
  max-height: 304px;
  overflow-y: auto;
}

/* Price filter fields: borderless inputs with the currency shown via the
   theme's `.price-val::after` (data-currency) so it sits cleanly on the right
   instead of a stray, misaligned span. */
.widget-facet.facet-price .price-val {
  border: none;
  padding: 0;
}
.widget-facet.facet-price .price-val::after {
  right: 0;
}
.widget-facet.facet-price .price-val input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0 32px 0 0;
  font: inherit;
  color: inherit;
  outline: none;
}
.widget-facet.facet-price .price-val input::-webkit-outer-spin-button,
.widget-facet.facet-price .price-val input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.widget-facet.facet-price .price-val input {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Out-of-stock products on listings: lay a translucent gray veil over the
   image so the product reads as unavailable while still being browsable. */
.product-img.product-out-of-stock {
  position: relative;
}
.product-img.product-out-of-stock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 120, 0.45);
  z-index: 1;
  pointer-events: none;
}

/* Keep the "Out of Stock" button revealed without hover so the unavailable
   state is obvious at a glance on listings. */
.card-product .list-btn-main.always-visible {
  transform: translate(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ------------------------------------------------------------------
   My Account — address book
   The theme left the saved addresses as plain, centre-aligned text
   blocks with no card, so uneven heights and a floating "Default"
   heading read as cluttered. Present each address as a tidy,
   equal-height card with a badge and aligned actions instead.
------------------------------------------------------------------ */
.account-address .widget-inner-address {
  text-align: left;
}

.account-address-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 28px;
  text-align: left;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.account-address-item:hover {
  border-color: var(--main-rgba-2);
  box-shadow: var(--shadow2);
}

.account-address-item.is-default {
  border-color: var(--primary);
}

.account-address-item .address-default-badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--rgba-primary);
  border-radius: 99px;
}

.account-address-item .address-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-address-item .address-details p {
  margin: 0;
  color: var(--secondary);
  line-height: 1.5;
}

.account-address-item .address-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--main);
}

.account-address-item .address-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.account-address-item .address-actions .tf-btn {
  flex: 1;
  justify-content: center;
}

.account-address-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--secondary-2);
}
