#masthead.site-header,
.site-header,
.traidemart-nav-shell {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

html,
body {
  overflow-x: hidden;
  top: 0 !important;
}

#page,
.site,
.site-content,
.site-header,
.site-footer {
  overflow-x: clip;
}

.content-area,
.widget-area,
.site-main,
.entry-content,
.entry-summary,
.entry-header,
.hentry,
.woocommerce,
.woocommerce-page {
  min-width: 0;
  max-width: 100%;
}

img,
video,
iframe,
canvas,
svg,
form,
input,
select,
textarea {
  max-width: 100%;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
.goog-te-gadget-simple,
#google_translate_element {
  display: none !important;
}

body > .skiptranslate,
iframe.skiptranslate {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

.traidemart-nav-shell {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.traidemart-lang-switcher {
  position: absolute;
  right: 0;
  top: 0.6rem;
  transform: none;
}

.traidemart-header-lang-switcher {
  position: static;
  margin: 0;
  z-index: 3;
}

.traidemart-header-lang-switcher::after {
  right: 0.95rem;
}

.traidemart-header-lang-switcher .traidemart-lang-select {
  min-height: 48px;
}

.traidemart-nav-shell > .traidemart-lang-switcher {
  display: none;
}

.traidemart-lang-select {
  min-width: 8rem;
  min-height: 40px;
  padding: 0 2.2rem 0 0.95rem;
  border: 1px solid rgba(23, 20, 17, 0.08);
  border-radius: 999px;
  background: #faf8f5;
  color: #171411;
  font-size: 0.82rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.traidemart-lang-switcher::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.35rem;
  border-right: 1.5px solid #6d635c;
  border-bottom: 1.5px solid #6d635c;
  transform: rotate(45deg);
  pointer-events: none;
}

.traidemart-primary-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.traidemart-primary-nav-list li {
  margin: 0;
}

.traidemart-primary-nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: #171411;
}

@media (min-width: 769px) {
  .site-header {
    padding-top: 1.1rem !important;
    padding-bottom: 0.9rem !important;
  }

  .site-header .col-full {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, 360px) auto;
    align-items: center;
    column-gap: 1.25rem;
  }

  .site-header .site-branding {
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    grid-column: 1;
  }

  .site-header .site-branding .site-title {
    margin: 0;
    line-height: 1;
  }

  .site-header .site-search {
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    grid-column: 3;
  }

  .site-header .site-search .search-field {
    width: 100%;
  }

  .site-header .traidemart-header-lang-switcher {
    grid-column: 4;
    justify-self: end;
    width: max-content;
  }

  .traidemart-nav-shell {
    grid-column: 2;
    display: block;
    align-self: center;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    min-width: 0;
  }

  .traidemart-primary-nav {
    width: 100%;
  }

  .traidemart-primary-nav-list {
    justify-content: center;
    gap: 1.6rem;
    width: 100%;
  }
}

.site-branding .site-description,
.site-branding p.site-description {
  display: none !important;
}

.site-search .widget,
.site-search .woocommerce-product-search {
  margin: 0;
}

.site-search .woocommerce-product-search {
  position: relative;
}

.site-search .search-field {
  width: min(320px, 100%);
  min-height: 48px;
  padding: 0 1rem 0 2.6rem;
  border: 1px solid rgba(23, 20, 17, 0.08);
  border-radius: 999px;
  background: #faf8f5;
  color: #171411;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-search .search-field::placeholder {
  color: #8a7d73;
}

.site-search .woocommerce-product-search::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.52rem;
  border: 2px solid #6d635c;
  border-radius: 50%;
}

.site-search .woocommerce-product-search::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.72rem;
  width: 0.55rem;
  height: 2px;
  margin-top: 0.24rem;
  background: #6d635c;
  transform: rotate(45deg);
  border-radius: 999px;
}

.site-search .woocommerce-product-search button {
  display: none;
}

@media (max-width: 768px) {
  .traidemart-header-lang-switcher {
    display: block;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.32rem);
    right: 0.75rem;
    z-index: 10001;
  }

  .site-header .traidemart-header-lang-switcher .traidemart-lang-select {
    min-width: 5.9rem;
    min-height: 2.1rem;
    padding: 0 1.9rem 0 0.8rem;
    font-size: 0.78rem;
  }

  .traidemart-header-lang-switcher::after {
    right: 0.8rem;
  }

  .traidemart-nav-shell > .traidemart-lang-switcher {
    display: none;
  }

  .traidemart-primary-nav-list {
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
  }

  .traidemart-lang-switcher {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    transform: none;
    margin-bottom: 0;
  }

  .traidemart-lang-select {
    min-width: 6.5rem;
    width: auto;
  }
}

.storefront-full-width-content .content-area,
.page-template-template-homepage-php .content-area {
  width: 100%;
  float: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.site-header .col-full,
.site-content .col-full,
.page-template-template-homepage-php .site-content .col-full,
.site-footer .col-full,
.header-widget-region .col-full {
  max-width: min(1720px, calc(100vw - 1.5rem));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

.site-info,
.site-footer .site-info,
.site-footer .site-info * {
  display: none !important;
}

.storefront-woocommerce-brands .section-title {
  display: none !important;
}

.woocommerce ul.products,
.page-template-template-homepage-php ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  width: min(calc(100vw - 2rem), 1720px);
  margin: 0 auto;
  padding: 0 1rem;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product,
.page-template-template-homepage-php ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  min-height: 100%;
  border: 1px solid rgba(23, 20, 17, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 20, 17, 0.05);
}

.woocommerce ul.products li.product > a:first-child,
.page-template-template-homepage-php ul.products li.product > a:first-child {
  display: grid;
  gap: 0.8rem;
  text-decoration: none;
  flex: 1 1 auto;
}

.woocommerce ul.products li.product a img,
.page-template-template-homepage-php ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #f5f5f5;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.page-template-template-homepage-php ul.products li.product h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2 a {
  text-decoration: none;
}

.woocommerce ul.products li.product .star-rating {
  display: none;
}

.storefront-popular-products .onsale,
.storefront-on-sale-products .onsale,
.storefront-recent-products .onsale,
.storefront-best-selling-products .onsale {
  display: none !important;
}

.woocommerce ul.products li.product .price,
.page-template-template-homepage-php ul.products li.product .price {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #171411;
}

.woocommerce ul.products li.product .button,
.page-template-template-homepage-php ul.products li.product .button {
  margin-top: 0.85rem;
  align-self: stretch;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1rem;
}

@media (max-width: 900px) {
  .woocommerce ul.products,
  .page-template-template-homepage-php ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 1.5rem);
    padding: 0 0.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --traidemart-handheld-topbar-height: calc(2.95rem + env(safe-area-inset-top, 0px));
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    padding-top: var(--traidemart-handheld-topbar-height);
  }

  .storefront-handheld-footer-bar {
    top: 0 !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    z-index: 9999;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .storefront-handheld-footer-bar ul {
    width: calc(100% - 7.25rem);
    margin-right: auto;
  }

  .storefront-handheld-footer-bar ul li > a {
    height: 2.95rem;
  }

  .storefront-handheld-footer-bar ul li.search {
    display: none !important;
  }

  .storefront-handheld-footer-bar ul.columns-3 li {
    width: 50%;
  }

  .site-header .site-branding,
  .site-header .site-branding .site-title,
  .site-header .site-branding .site-title a {
    display: none !important;
  }

  .storefront-handheld-footer-bar ul li.search .site-search {
    top: 100%;
    bottom: auto !important;
  }

  .home.page-template-template-homepage .site-header,
  .home.page-template-template-homepage .site-main,
  .page-template-template-homepage .site-main,
  .page-template-template-homepage .type-page,
  .page-template-template-homepage .entry-header,
  .page-template-template-homepage .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .home.page-template-template-homepage .site-header {
    padding-top: 0.9rem !important;
    padding-bottom: 0.45rem !important;
    margin-bottom: 0 !important;
  }

  .page-template-template-homepage .site-main,
  .page-template-template-homepage:not(.has-post-thumbnail) .site-main {
    padding-top: 0 !important;
  }

  .page-template-template-homepage .type-page {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }

  .page-template-template-homepage .entry-header {
    padding: 0 !important;
    min-height: 0 !important;
  }

  .page-template-template-homepage .entry-header h1,
  .page-template-template-homepage .entry-content > :first-child {
    margin-top: 0 !important;
  }

  .page-template-template-homepage .entry-content > :last-child {
    margin-bottom: 0 !important;
  }

  .traidemart-nav-shell {
    padding-top: 2.65rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(23, 20, 17, 0.1);
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .traidemart-nav-shell {
    display: grid;
    gap: 0.25rem;
  }

  .site-content .col-full,
  .page-template-template-homepage-php .site-content .col-full,
  .storefront-full-width-content .content-area,
  .page-template-template-homepage-php .content-area,
  #primary.content-area,
  .site-main {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
  }

  .traidemart-primary-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.95rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .traidemart-primary-nav-list li {
    flex: 0 0 auto;
    text-align: center;
  }

  .traidemart-primary-nav-list a {
    display: inline-block;
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: normal;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
  }

  .traidemart-primary-nav-list li.is-active a {
    color: #171411;
    border-bottom-color: #171411;
  }

  .woocommerce ul.products,
  .page-template-template-homepage-php ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 0.6rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .woocommerce ul.products li.product,
  .page-template-template-homepage-php ul.products li.product {
    padding: 0.65rem;
    text-align: center;
    align-items: center;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product h2,
  .page-template-template-homepage-php ul.products li.product h2 {
    font-size: 0.84rem;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title a,
  .woocommerce ul.products li.product h2 a,
  .page-template-template-homepage-php ul.products li.product h2 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .woocommerce ul.products li.product .price,
  .page-template-template-homepage-php ul.products li.product .price {
    font-size: 0.88rem;
    text-align: center;
  }

  .woocommerce ul.products li.product .button,
  .page-template-template-homepage-php ul.products li.product .button {
    padding: 0.65rem 0.75rem;
    font-size: 0.72rem;
    align-self: center;
  }
}
