:root {
  --company-primary: var(--brand-primary, #ff6565);
  --company-primary-hover: var(--brand-primary-hover, #e85353);
  --company-ink: var(--brand-ink, #1f2937);
  --company-muted: #4f4f4f;
  --company-border: var(--brand-border, #ece8e6);
  --company-border-soft: #e1e1e1;
}

.company-header {
  position: relative;
  z-index: 20;
  background-color: #fff;
  border-bottom: 1px solid var(--company-border);
}

.company-header .container {
  max-width: 1280px;
}

.company-header .header-navigation {
  padding-left: 0 !important;
}

.company-header .main-nav > li {
  margin: 0 10px;
}

.company-header .main-nav > li > a {
  height: 92px;
  line-height: 92px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  position: relative;
}

.company-header .main-nav > li > a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 28px;
  height: 2px;
  background: var(--company-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-out;
}

.company-header .main-nav > li.active > a,
.company-header .main-nav > li > a:hover {
  color: var(--company-primary);
}

.company-header .main-nav > li.active > a::after,
.company-header .main-nav > li > a:hover::after {
  transform: scaleX(1);
}

.company-header .header-action .header-action-btn {
  position: relative;
  margin-left: 18px;
  width: 28px;
  height: 28px;
  color: var(--company-ink);
  font-size: 20px;
  line-height: 1;
}

.company-header .header-action .header-action-btn .icon,
.company-header .header-action .header-action-btn .icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.company-header .header-action .header-action-btn:hover {
  color: var(--company-primary);
}

.company-header .header-action .header-action-btn .header-cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--company-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.company-header .header-menu-btn {
  margin-left: 16px;
}

.company-header .header-menu-btn span {
  background-color: var(--company-ink);
}

.company-header--home.header-transparent {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
}

.sticky-header.sticky.company-header {
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.sticky-header.sticky.company-header .main-nav > li > a {
  height: 76px;
  line-height: 76px;
}

.sticky-header.sticky.company-header .main-nav > li > a::after {
  bottom: 22px;
}

.page-title-area {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 280px;
  padding: 138px 0 58px;
}

.page-title-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.88) 65%, rgba(255, 255, 255, 0.94) 100%);
}

.page-title-area .container {
  position: relative;
  z-index: 1;
}

.page-title-content .title {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.page-title-content .breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.page-title-content .breadcrumb-item {
  font-size: 14px;
  color: var(--company-muted);
}

.page-title-content .breadcrumb-item a {
  color: var(--company-ink);
  text-decoration: none;
}

.page-title-content .breadcrumb-item a:hover {
  color: var(--company-primary);
}

.page-title-content .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #9a9a9a;
}

.section-space .company-info-card {
  background: #fff;
  border: 1px solid var(--company-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

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

.footer-main .widget-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.footer-main .widget-about .desc {
  max-width: 320px;
}

.footer-main .widget-social a {
  margin-right: 8px;
}

.blog-filter-panel {
  border: 1px solid var(--company-border);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.blog-filter-panel .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-filter-panel .form-control {
  height: 46px;
  border-radius: 10px;
  border-color: var(--company-border-soft);
  font-size: 15px;
}

.blog-filter-panel .nice-select {
  width: 100%;
  float: none;
  display: block;
  height: 46px;
  line-height: 44px;
  border-radius: 10px;
  border-color: var(--company-border-soft);
}

.blog-filter-panel .nice-select .current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-filter-panel .nice-select .list {
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
}

.blog-filter-panel .nice-select:after {
  right: 14px;
}

.blog-filter-actions {
  display: flex;
  gap: 10px;
}

.blog-list-grid .blog-post-card {
  border: 1px solid var(--company-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.blog-list-grid .blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.blog-list-grid .blog-post-card .thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-list-grid .blog-post-card .content {
  padding: 18px 18px 16px;
}

.blog-empty-state {
  border: 1px dashed #d9d9d9;
  border-radius: 14px;
  padding: 36px 18px;
  background: #fcfcfc;
}

.product-detail-page .product-page-title {
  min-height: 210px;
  padding: 118px 0 34px;
}

.product-detail-page .product-detail-main .section-space {
  padding-top: 56px;
  padding-bottom: 84px;
}

.product-detail-page .product-details-thumb {
  border: 1px solid var(--company-border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.product-detail-page .product-details-thumb img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.product-detail-page .pd-thumb {
  border: 1px solid var(--company-border) !important;
  border-radius: 10px !important;
  background: #fff;
}

.product-detail-page .pd-thumb:hover {
  border-color: var(--company-primary) !important;
}

.product-detail-page .product-details-content {
  border: 1px solid var(--company-border);
  border-radius: 18px;
  padding: 22px 20px;
  background: #fff;
}

.product-detail-page .product-details-content .product-details-title {
  margin-bottom: 8px;
}

.product-detail-page .product-details-qty-list {
  border-top: 1px solid var(--company-border);
  border-bottom: 1px solid var(--company-border);
  padding: 12px 0;
  margin: 16px 0;
}

.product-detail-page .product-details-qty-list .qty-list-check {
  padding: 8px 0;
}

.product-detail-page .product-details-qty-list .form-check-label b {
  margin-left: 4px;
}

.product-detail-page #bundleBox {
  border: 1px dashed var(--company-border);
  border-radius: 12px;
  padding: 12px;
  background: #fcfcfc;
}

.product-detail-page .product-details-action {
  gap: 10px;
}

.product-detail-page .product-details-action .btn,
.product-detail-page .product-reviews-form .btn {
  background: var(--company-primary);
  border-color: var(--company-primary);
  color: #fff;
}

.product-detail-page .product-details-action .btn:hover,
.product-detail-page .product-reviews-form .btn:hover {
  background: var(--company-primary-hover);
  border-color: var(--company-primary-hover);
}

@media only screen and (max-width: 1199px) {
  .company-header .main-nav > li {
    margin: 0 6px;
  }

  .company-header .main-nav > li > a {
    padding: 0 6px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 991px) {
  .company-header {
    border-bottom: 1px solid var(--company-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  }

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

  .company-header .header-action {
    justify-content: flex-end;
  }

  .company-header .header-action .header-action-btn {
    margin-left: 12px;
    font-size: 18px;
  }

  .company-header .header-menu-btn {
    margin-left: 12px;
  }

  .page-title-area {
    min-height: 220px;
    padding: 110px 0 42px;
  }

  .page-title-content .title {
    font-size: 34px;
  }

  .section-space .company-info-card {
    padding: 20px;
  }

  .blog-filter-actions {
    margin-top: 2px;
  }

  .product-detail-page .product-page-title {
    min-height: 170px;
    padding: 102px 0 22px;
  }

  .product-detail-page .product-detail-main .section-space {
    padding-top: 34px;
    padding-bottom: 62px;
  }
}

@media only screen and (max-width: 767px) {
  .page-title-area {
    min-height: 188px;
    padding: 100px 0 28px;
  }

  .page-title-content .title {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .page-title-content .breadcrumb-item {
    font-size: 13px;
  }

  .footer-main .widget-nav {
    grid-template-columns: 1fr;
  }

  .blog-filter-panel {
    padding: 14px;
  }

  .blog-filter-panel .form-control,
  .blog-filter-panel .nice-select {
    height: 42px;
    line-height: 40px;
    font-size: 14px;
  }

  .blog-filter-actions {
    flex-direction: column;
  }

  .blog-list-grid .blog-post-card .thumb img {
    height: 200px;
  }

  .product-detail-page .product-page-title {
    min-height: 148px;
    padding: 92px 0 18px;
  }

  .product-detail-page .product-details-content {
    margin-top: 16px;
    padding: 16px 14px;
  }

  .product-detail-page .product-details-action {
    flex-wrap: wrap;
  }

  .product-detail-page .product-details-action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Frontend ergonomics */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

.company-header .header-logo img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.company-header .header-action .header-action-btn,
.company-header .header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}

.company-header .header-menu-btn {
  flex-direction: column;
  gap: 4px;
  border-radius: 10px;
}

.page-title-area {
  overflow: hidden;
}

.page-title-content .title {
  overflow-wrap: anywhere;
}

.page-title-content .breadcrumb {
  gap: 4px;
}

.page-title-content .breadcrumb-item + .breadcrumb-item::before {
  margin-right: 4px;
}

.blog-filter-panel .btn {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
}

.blog-list-grid .blog-post-card .content .title {
  font-size: 22px;
  line-height: 1.35;
}

.blog-list-grid .blog-post-card .content .meta {
  gap: 10px;
  flex-wrap: wrap;
}

.post-body img,
.post-body iframe,
.post-body table {
  max-width: 100%;
}

.shop-search-page .shop-toolbar .form-control {
  border-radius: 10px;
}

.shop-search-page .shop-cats a {
  font-weight: 600;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.shop-search-page .product-item,
.shop-cart-page .cart-totals-wrap,
.shop-cart-page .coupon-wrap,
.shop-checkout-page .checkout-billing-details-wrap,
.shop-checkout-page .checkout-order-details-wrap,
.shop-payment-page .pay-card,
.shop-tracking-page .trk-card {
  border-radius: 14px;
}

.shop-cart-page .js-qty-wrap {
  min-width: 130px;
  justify-content: space-between;
  background: #fff;
}

.shop-cart-page .js-qty-wrap input.js-cart-qty {
  width: 48px;
}

.shop-cart-page .mobile-checkout-bar {
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.shop-checkout-page .checkout-nav .btn {
  border-radius: 10px;
}

.shop-checkout-page .co-step .num {
  flex: 0 0 22px;
}

.shop-checkout-page .co-step {
  min-height: 46px;
}

.shop-payment-page .pay-actions a,
.shop-payment-page .pay-actions button {
  text-align: center;
}

.shop-payment-page .bank-no {
  overflow-wrap: anywhere;
}

.shop-tracking-page .trk-step {
  border-color: var(--company-border);
}

.shop-tracking-page .trk-row strong {
  text-align: right;
}

.product-detail-page .pro-qty input,
.product-action-modal .pro-qty input {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  opacity: 1;
}

.product-detail-page .product-details-action .price {
  margin-bottom: 0;
  font-size: 48px;
  line-height: 0.95;
}

.product-detail-page .product-details-cart-wishlist {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-detail-page .product-details-cart-wishlist .btn-wishlist {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--company-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-detail-page .product-details-cart-wishlist .btn {
  min-height: 44px;
}

.company-home-page .company-home-products .product-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.company-home-page .company-home-products .product-item .product-thumb {
  aspect-ratio: 4 / 5;
  background: #f7f7f7;
}

.company-home-page .company-home-products .product-item .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-home-page .company-home-products .product-item .product-info {
  flex: 1 1 auto;
}

.company-home-page .company-home-products .product-item .product-info .title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.off-canvas-wrapper .offcanvas-body,
.aside-cart-wrapper .offcanvas-body {
  -webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 991px) {
  .company-header {
    position: sticky;
    top: 0;
    z-index: 120;
  }

  .company-header--home.header-transparent {
    position: sticky;
    background: #fff;
    border-bottom-color: var(--company-border);
  }

  .company-header .header-action {
    gap: 4px;
  }

  .company-header .header-action .header-action-btn {
    margin-left: 0;
    font-size: 18px;
  }

  .company-header .header-menu-btn {
    margin-left: 2px;
  }

  .footer-main .widget-title {
    margin-bottom: 18px;
  }
}

@media only screen and (max-width: 767px) {
  .section-space {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .company-header .header-logo img {
    max-height: 44px;
  }

  .company-header .header-action .header-action-btn,
  .company-header .header-menu-btn {
    min-width: 38px;
    min-height: 38px;
  }

  .company-header .header-action .header-action-btn .icon i {
    font-size: 17px;
  }

  .page-title-area {
    min-height: 160px;
    padding: 82px 0 20px;
  }

  .page-title-content .title {
    font-size: 24px;
    line-height: 1.18;
  }

  .page-title-content .breadcrumb-item {
    font-size: 12px;
  }

  .section-space .company-info-card {
    padding: 16px;
    border-radius: 14px;
  }

  .footer-main {
    padding: 52px 0 44px;
  }

  .footer-main .widget-about .desc {
    max-width: none;
  }

  .footer-main .widget-social {
    gap: 14px;
  }

  .footer-main .widget-social a {
    margin-right: 0;
  }

  .blog-filter-panel {
    padding: 12px;
  }

  .blog-filter-panel .form-label {
    margin-bottom: 6px;
  }

  .blog-filter-panel .form-control,
  .blog-filter-panel .nice-select {
    height: 44px;
    line-height: 42px;
  }

  .blog-list-grid .blog-post-card .thumb img {
    height: 172px;
  }

  .blog-list-grid .blog-post-card .content {
    padding: 12px;
  }

  .blog-list-grid .blog-post-card .content .title {
    font-size: 17px;
    line-height: 1.35;
  }

  .shop-search-page .shop-toolbar {
    gap: 10px;
  }

  .shop-search-page .shop-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
  }

  .shop-search-page .shop-cats a {
    flex: 0 0 auto;
  }

  .shop-search-page .shop-empty {
    padding: 32px 16px;
  }

  .company-home-page .company-home-products .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 16px;
  }

  .company-home-page .company-home-products .product-item .flag-new {
    top: 8px;
    right: 8px;
    font-size: 11px;
    padding: 5px 10px 6px;
  }

  .company-home-page .company-home-products .product-item .product-rating {
    margin-bottom: 6px;
  }

  .company-home-page .company-home-products .product-item .product-rating .reviews {
    font-size: 11px;
    margin-top: 4px;
  }

  .company-home-page .company-home-products .product-item .product-info .title {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .company-home-page .company-home-products .product-item .prices .price {
    font-size: 16px;
  }

  .company-home-page .company-home-products .product-item .prices .price-old {
    display: none;
  }

  .company-home-page .company-home-products .product-item .product-action {
    display: none !important;
  }

  .company-home-page .company-home-products .product-item .product-action-bottom {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .company-home-page .company-home-products .product-item .product-action-bottom .product-action-btn {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
    font-size: 14px;
    margin: 0;
  }

  .company-home-page .company-home-products .product-item .product-action-bottom .action-btn-cart {
    grid-column: 1 / -1;
    order: 1;
    min-height: 40px;
    font-size: 13px;
    padding: 8px 10px;
    margin: 0;
  }

  .company-home-page .company-home-products .product-item .product-action-bottom .action-btn-quick-view {
    order: 2;
  }

  .company-home-page .company-home-products .product-item .product-action-bottom .action-btn-wishlist {
    order: 3;
  }

  .shop-search-page .product-info .title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .shop-search-page .product-info .prices .price {
    font-size: 14px;
  }

  .shop-cart-page .shopping-cart-form tr.tbody-item {
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
  }

  .shop-cart-page .shopping-cart-form td {
    padding: 4px 0;
  }

  .shop-cart-page .shopping-cart-form td.product-name .title {
    font-size: 16px;
    line-height: 1.35;
  }

  .shop-cart-page .shopping-cart-form td.product-price .price,
  .shop-cart-page .shopping-cart-form td.product-subtotal .price {
    font-size: 15px;
  }

  .shop-cart-page .coupon-wrap,
  .shop-cart-page .cart-totals-wrap {
    padding: 16px;
  }

  .shop-cart-page .cart-totals-wrap .checkout-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .shop-checkout-page .co-stepper {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 4px;
    margin-bottom: 14px;
  }

  .shop-checkout-page .co-step {
    min-width: 188px;
    flex: 0 0 auto;
  }

  .shop-checkout-page .checkout-order-details-wrap .order-details-table-wrap {
    padding: 16px;
  }

  .shop-checkout-page .checkout-nav {
    position: sticky;
    bottom: 0;
    z-index: 25;
    background: #fff;
    border-top: 1px solid var(--company-border);
    margin-top: 12px;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .shop-payment-page .stepper {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .shop-payment-page .step {
    min-width: 180px;
    flex: 0 0 auto;
  }

  .shop-payment-page .pay-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shop-payment-page .pay-actions .btn-soft,
  .shop-payment-page .pay-actions .btn-dark {
    width: 100%;
  }

  .shop-tracking-page .trk-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .shop-tracking-page .trk-row strong {
    text-align: left;
  }

  .product-detail-page .product-page-title {
    min-height: 124px;
    padding: 82px 0 14px;
  }

  .product-detail-page .product-details-thumb {
    border-radius: 14px;
    padding: 10px;
  }

  .product-detail-page .product-details-thumb img {
    max-height: 360px;
  }

  .product-detail-page .product-details-action {
    margin-top: 22px;
    gap: 8px;
  }

  .product-detail-page .product-details-action .price {
    width: 100%;
    font-size: 40px;
  }

  .product-detail-page .product-details-cart-wishlist {
    width: 100%;
  }

  .product-detail-page .product-details-cart-wishlist .btn {
    flex: 1 1 auto;
  }

  .off-canvas-wrapper.offcanvas,
  .aside-cart-wrapper.offcanvas {
    width: min(92vw, 360px);
  }

  .aside-search-box-wrapper.offcanvas-top {
    height: 188px;
  }

  .aside-search-box-wrapper .offcanvas-body {
    padding-top: 34px;
  }
}

@media only screen and (max-width: 420px) {
  .company-home-page .company-home-products .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 14px;
  }

  .company-home-page .company-home-products .product-item .product-info .title {
    font-size: 15px;
  }

  .company-home-page .company-home-products .product-item .prices .price {
    font-size: 14px;
  }

  .company-home-page .company-home-products .product-item .product-action-bottom .product-action-btn {
    min-height: 36px;
    font-size: 12px;
  }
}
