:root {
  --primary: #db1215;
  --primary-dark: #9f0d10;
  --main: #090909;
  --text: #545454;
  --line: #e9e4df;
  --bg-1: #fbfaf8;
  --bg-2: #f5f2ee;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--main);
  background: var(--white);
  font-family: "Albert Sans", sans-serif;
}

a,
button,
input,
select,
textarea {
  outline-color: var(--primary);
}

img {
  max-width: 100%;
}

.text_primary,
.current-price,
.price-on-sale {
  color: var(--primary) !important;
}

.header-default {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 99;
}

.header-default .wrapper-header {
  min-height: 82px;
}

.box-nav-ul {
  gap: 18px !important;
}

.box-nav-ul .item-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-icon .nav-icon-item {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.nav-icon .nav-icon-item:hover {
  color: var(--primary);
  background: var(--bg-1);
  border-color: var(--line);
}

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

.tf-top-bar {
  font-size: 13px;
}

.top-bar-text {
  color: var(--main);
}

.tf-page-title {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 45px 0;
}

.tf-page-title .heading {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0;
}

.flat-title .title,
.flat-title-v2 .title {
  letter-spacing: 0;
}

.tf-btn.btn-fill,
.subscribe-button.btn-fill {
  background: var(--main);
  border-color: var(--main);
}

.tf-btn.btn-fill:hover,
.subscribe-button.btn-fill:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.tf-btn.btn-line,
.btn-link.link {
  color: var(--main);
}

.tf-btn.btn-line:hover,
.btn-link.link:hover {
  color: var(--primary);
}

.card-product {
  min-width: 0;
}

.card-product-wrapper,
.collection-image,
.tf-product-media-wrap {
  background: var(--bg-2);
}

.card-product-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-product-wrapper .product-img,
.card-product-wrapper .product-img img {
  height: 100%;
}

.card-product-wrapper .product-img img,
.collection-image img,
.tf-product-media-wrap img {
  object-fit: cover;
}

.card-product-info .title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.list-product-btn form {
  line-height: 0;
}

.list-product-btn button.box-icon {
  border: 0;
}

.wishlist.active,
.wishlist:hover {
  color: #fff;
  background: var(--primary) !important;
}

.product-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.product-option-pill {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.product-option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-option-pill span {
  min-width: 46px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.product-option-pill input:checked + span {
  color: #fff;
  background: var(--main);
  border-color: var(--main);
}

.product-option-pill input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.js-add-to-cart-form button.is-added,
.js-add-to-wishlist-form button.is-added {
  color: #fff !important;
  background: #168a45 !important;
  border-color: #168a45 !important;
}

.store-feedback {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 1090;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 18px;
  color: #fff;
  background: var(--main);
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.store-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.store-feedback[data-type="success"] {
  background: #168a45;
}

.layout-search-results {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.layout-search-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--main);
}

.layout-search-image {
  width: 72px;
  height: 88px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.layout-search-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-search-info {
  min-width: 0;
}

.layout-search-title {
  display: -webkit-box;
  margin-bottom: 4px;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.layout-search-meta,
.layout-search-empty {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.layout-search-price {
  margin-top: 6px;
  font-weight: 700;
}

.layout-search-view-all {
  margin-top: 6px;
  justify-content: center;
}

.collection-item.style-2 .collection-content {
  background: rgba(255, 255, 255, .94);
}

.my-account-content,
.tf-cart-footer-inner,
.tf-login-form,
.contact-form,
.wg-quantity,
.tf-field,
.alert {
  border-radius: 3px;
}

.my-account-content,
.tf-cart-footer-inner {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
}

.tf-table-page-cart {
  border: 1px solid var(--line);
}

.tf-table-page-cart th {
  background: var(--bg-1);
}

.tf-table-page-cart td,
.tf-table-page-cart th {
  vertical-align: middle;
}

.tf-cart-item_product .img-box {
  background: var(--bg-2);
}

.tf-cart-item_product .img-box img {
  object-fit: cover;
}

.form-control,
.tf-field-input,
.subscribe-email,
.tf-mini-search-frm input {
  border-color: var(--line);
}

.form-control:focus,
.tf-field-input:focus,
.subscribe-email:focus,
.tf-mini-search-frm input:focus {
  border-color: var(--main);
  box-shadow: none;
}

.category-menu-img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 12px;
}

.mobile-category-link {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-logo img {
  max-height: 48px;
}

.tf-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tf-payment img {
  max-height: 24px;
}

.checkout-page .checkout-details-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
}

.checkout-section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.checkout-section-heading p {
  margin: 0;
}

.checkout-step {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-weight: 600;
  line-height: 1;
}

.checkout-page .coupon-box input:disabled,
.checkout-page .coupon-box button:disabled,
.checkout-page .wd-check-payment input:disabled + label {
  opacity: .55;
  cursor: not-allowed;
}

.checkout-page .checkout-totals {
  display: grid;
  gap: 18px;
}

.checkout-page .checkout-note textarea {
  min-height: 120px;
}

.cart-page .tf-page-cart-item,
.cart-page .tf-page-cart-checkout,
.payment-status-card {
  background: #fff;
  border: 1px solid var(--line);
}

.cart-page .tf-page-cart-item {
  padding: 30px;
}

.cart-page .tf-page-cart-item .tf-table-page-cart {
  width: 100%;
  margin: 0;
}

.cart-page .cart-quantity-form {
  display: inline-flex;
}

.cart-page .cart-quantity-form .wg-quantity {
  background: #fff;
}

.cart-page .cart-quantity-form button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.payment-status-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.status-success {
  background: #168a45;
}

.status-error {
  background: var(--primary);
}

.status-warning {
  background: #8a6a16;
}

.payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
}

.payment-detail-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-detail-grid strong {
  overflow-wrap: anywhere;
}

.payment-confirmation-products {
  display: grid;
  gap: 14px;
}

.payment-confirmation-products .checkout-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.payment-confirmation-products .img-product {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  margin: 0;
  overflow: visible;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.payment-confirmation-products .img-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-confirmation-products .img-product .quantity {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--main);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.payment-confirmation-products .content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-confirmation-products .name {
  margin: 0;
  font-weight: 600;
}

.payment-confirmation-products .variant {
  font-size: 12px;
  color: var(--text);
}

.payment-confirmation-products .price {
  flex: 0 0 auto;
  font-weight: 600;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.admin-product-cell img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions .tf-btn {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}

.admin-form-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
}

.admin-form-switches label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-weight: 600;
}

@media (max-width: 1399px) {
  .box-nav-ul {
    gap: 12px !important;
  }

  .box-nav-ul .item-link {
    font-size: 11px;
  }
}

@media (max-width: 1199px) {
  .header-default .wrapper-header {
    min-height: 72px;
  }
}

@media (max-width: 767px) {
  .header-default .wrapper-header {
    min-height: 64px;
  }

  .header-default .logo-header .logo {
    max-height: 34px;
  }

  #header .nav-icon {
    gap: 8px !important;
  }

  #header .nav-icon .nav-account,
  #header .nav-icon .nav-wishlist {
    display: list-item;
  }

  #header .nav-icon .nav-icon-item {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  #header .nav-icon .count-box {
    right: -5px;
    top: -5px;
  }

  .tf-top-bar_wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 0;
  }

  .tf-top-bar_item,
  .top-bar-language {
    display: none !important;
  }

  .tf-page-title {
    padding: 32px 0;
  }

  .my-account-content,
  .cart-page .tf-page-cart-item,
  .tf-cart-footer-inner,
  .checkout-page .checkout-details-panel {
    padding: 20px;
  }

  .tf-table-page-cart .tf-cart-item_quantity form {
    justify-content: flex-end;
  }

  .payment-detail-grid {
    grid-template-columns: 1fr;
  }

  .store-feedback {
    right: 12px;
    bottom: 18px;
    max-width: calc(100vw - 24px);
  }
}
