/* Announcement bar: footer brown background and light text */
.tf-top-bar.tf-top-bar-footer-brown {
  background-color: var(--main) !important;
}
.tf-top-bar.tf-top-bar-footer-brown .tf-top-bar_left a,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-text,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .fw-7,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language a {
  color: rgba(255, 255, 255, 0.9);
}
.tf-top-bar.tf-top-bar-footer-brown .top-bar-text .tf-btn {
  color: var(--white);
}
.tf-top-bar.tf-top-bar-footer-brown .top-bar-text .tf-btn::after {
  background-color: var(--white);
}
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .filter-option-inner,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .dropdown-toggle,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .language-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Language label (English only) in footer and mobile menu */
.footer.background-black .tf-languages .language-label {
  color: rgb(161, 161, 161);
}

/* Currency/language dropdown: visible text and single box (override theme inset and light text) */
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .dropdown.bootstrap-select .dropdown-menu {
  inset: unset !important;
  background-color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.2) 0 4px 18px;
  border-radius: 0;
  border: none;
  padding: 15px 20px;
}
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .dropdown-menu .inner,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .dropdown-menu ul.dropdown-menu li a,
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .dropdown-menu ul.dropdown-menu li a .text {
  color: var(--main) !important;
  background: transparent !important;
}
.tf-top-bar.tf-top-bar-footer-brown .top-bar-language .dropdown-menu ul.dropdown-menu li a:hover {
  color: var(--primary) !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}

/* Show search icon in bottom header (theme hides it for header-style-4) */
#header.header-style-4 .header-bottom .nav-icon .nav-search {
  display: inline-flex !important;
}

/* Header: logo centered, nav left, icons right */
@media (min-width: 1200px) {
  .header-layout-centered-logo .header-nav-col .box-nav-ul {
    justify-content: flex-start;
  }
}

/* Shop: inline Filter button on mobile (replaces floating icon button) */
.btn-filter-inline {
  display: none;
}
.btn-sidebar-mobile--hidden {
  display: none !important;
}
@media (max-width: 1150px) {
  .btn-filter-inline.filterShop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-filter-inline .icon {
    font-size: 14px;
  }
}

/* Footer logo: confine size so it doesn't dominate the footer */
.footer .footer-logo img {
  max-width: 200px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Cart quantity selector overrides for wholesale (larger quantities) */

/* Cart sidebar: "You may also like" – keep content inside the box */
.modal-shopping-cart .tf-minicart-recommendations {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.modal-shopping-cart .tf-minicart-recommendations-inner {
  overflow: hidden;
}
.modal-shopping-cart .tf-minicart-recommendations-item {
  min-width: 0;
  overflow: hidden;
}
.modal-shopping-cart .tf-minicart-recommendations-item .tf-minicart-recommendations-item-image,
.modal-shopping-cart .tf-minicart-recommendations-item .tf-minicart-recommendations-item-image a {
  flex-shrink: 0;
}
.modal-shopping-cart .tf-minicart-recommendations-item .tf-minicart-recommendations-item-infos {
  min-width: 0;
  overflow: hidden;
  flex: 1;
}
.modal-shopping-cart .tf-minicart-recommendations-item .tf-minicart-recommendations-item-infos a.title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
  /* Limit to 3 lines then ellipsis so row height stays reasonable */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-shopping-cart .tf-minicart-recommendations-item .tf-minicart-recommendations-item-quickview {
  flex-shrink: 0;
}

/* Sidebar cart (mini cart) quantity selector */
#shoppingCart .wg-quantity.small,
.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info .tf-mini-cart-btns .wg-quantity {
  width: 160px;
  min-width: 160px;
  height: 40px;
}
#shoppingCart .wg-quantity.small .btn-quantity,
.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info .tf-mini-cart-btns .wg-quantity .btn-quantity {
  width: 36px;
  height: 40px;
  font-size: 18px;
  line-height: 40px;
}
#shoppingCart .wg-quantity.small input,
.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info .tf-mini-cart-btns .wg-quantity input {
  width: 56px;
  min-width: 56px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
}

/* View cart page quantity selector */
.tf-cart-item .wg-quantity {
  min-width: 160px;
  width: 160px;
  height: 40px;
}
.tf-cart-item .wg-quantity .btn-quantity {
  width: 36px;
  height: 40px;
  line-height: 40px;
  font-size: 18px;
}
.tf-cart-item .wg-quantity input {
  width: 56px;
  min-width: 56px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
}

/* Minimum order: disabled checkout button */
.btn-checkout-min.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: auto; /* keep clickable so we can show alert */
}
.tf-min-order-hint {
  display: none !important;
}

/* Stone type detail: "Description of {stone type}" heading – keep it modest, not page-dominant */
.stone-type-description-heading {
  font-size: 1.125rem !important;
  font-weight: 600;
  line-height: 1.4;
}

/* Rich-text description blocks (category, subcategory, product, stone type): keep heading tags but scale sizes to fit theme */
.category-description h1,
.product-description h1 {
  font-size: 1.25rem !important;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.category-description h1:first-child,
.product-description h1:first-child {
  margin-top: 0;
}
.category-description h2,
.product-description h2 {
  font-size: 1.125rem !important;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 0.875rem;
  margin-bottom: 0.4rem;
}
.category-description h2:first-child,
.product-description h2:first-child {
  margin-top: 0;
}
.category-description h3,
.product-description h3 {
  font-size: 1.0625rem !important;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}
.category-description h3:first-child,
.product-description h3:first-child {
  margin-top: 0;
}
.category-description h4,
.product-description h4,
.category-description h5,
.product-description h5,
.category-description h6,
.product-description h6 {
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 0.6rem;
  margin-bottom: 0.3rem;
}
.category-description p,
.product-description p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.category-description p:last-child,
.product-description p:last-child {
  margin-bottom: 0;
}

/* Back to Orders: same style as header nav links (Stone Types, Shop, etc.) */
.link-header-style {
  font-size: 16px;
  font-weight: 500;
  color: var(--main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  -webkit-transition: color 0.3s ease-in-out;
  -moz-transition: color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
}
.link-header-style .icon {
  font-size: 12px;
}
.link-header-style::before {
  content: "";
  width: 0;
  height: 1px;
  top: 99%;
  position: absolute;
  left: auto;
  right: 0;
  z-index: 1;
  -webkit-transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
  -o-transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
  background: var(--main);
}
.link-header-style:hover {
  color: var(--main);
}
.link-header-style:hover::before {
  width: 100%;
  left: 0;
  right: auto;
}

/* Payment method options: vertical layout, solid buttons */
.widget-order-tab .payment-method-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.widget-order-tab .payment-method-options .payment-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.widget-order-tab .payment-method-options .payment-method-btn {
  min-height: 56px;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.widget-order-tab .payment-method-options .payment-method-btn .icon {
  font-size: 1.3rem;
}
.widget-order-tab .payment-method-options .payment-method-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.widget-order-tab .payment-method-options .payment-method-note {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

/* Shop by stone types – icon and name in home section */
.tf-sw-brand .brand-item.stone-type-card,
.tf-sw-brand a.brand-item,
.stone-types-home a.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tf-sw-brand .stone-type-icon,
.stone-types-home .stone-type-icon {
  max-width: 80px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tf-sw-brand .stone-type-name,
.stone-types-home .stone-type-name {
  font-size: 0.95rem;
  font-weight: 500;
}
.stone-types-home .brand-item {
  border-radius: 0;
  border: 1px solid #d5d5d5;
  background-color: #fff;
  padding: 0;
}

/* ========== Filter sidebar – larger text for better visibility ========== */
.tf-shop-sidebar.sidebar-filter .widget-facet .facet-title,
.canvas-filter .widget-facet .facet-title {
  font-size: 18px;
  line-height: 1.35;
}
.tf-shop-sidebar.sidebar-filter .widget-facet .cate-item a,
.tf-shop-sidebar.sidebar-filter .widget-facet .list-item .label,
.canvas-filter .widget-facet .cate-item a,
.canvas-filter .widget-facet .list-item .label {
  font-size: 16px;
  line-height: 1.45;
}
.tf-shop-sidebar.sidebar-filter .widget-facet .cate-item:not(:first-child),
.tf-shop-sidebar.sidebar-filter .widget-facet .list-item:not(:first-child),
.canvas-filter .widget-facet .cate-item:not(:first-child),
.canvas-filter .widget-facet .list-item:not(:first-child) {
  margin-top: 12px;
}
.tf-shop-sidebar.sidebar-filter .widget-price .box-title-price .title-price,
.tf-shop-sidebar.sidebar-filter .widget-price .caption-price .price-val,
.canvas-filter .widget-price .box-title-price .title-price,
.canvas-filter .widget-price .caption-price .price-val,
.canvas-filter .widget-price .caption-price .price-val::after {
  font-size: 16px;
  line-height: 1.4;
}

/* Stone types sidebar search (shop page) – full width to match list below */
.widget-facet.wd-categories .stone-types-search-wrap {
  width: 100%;
  margin-right: 5px; /* match .current-scrollbar so search bar aligns with list */
}
.widget-facet.wd-categories .stone-types-search-wrap .stone-types-search-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 4px;
}
.widget-facet.wd-categories .stone-types-search-wrap .stone-types-search-input::placeholder {
  color: #888;
}

/* Stone types section: heading centered, View all on the right */
.stone-types-title-row .title {
  margin-bottom: 0;
}
.stone-types-title-row .stone-types-view-all {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Personalise Gift Card section: text fits properly in the box (light beige, constrained width, comfortable padding) */
.section-gift-card .section-gift-card__inner {
  background-color: #f9f7f4;
  border-radius: 0;
  overflow: hidden;
}
.section-gift-card .section-gift-card__content {
  padding: 48px 56px 48px 56px;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.section-gift-card__text-box {
  max-width: 480px;
  width: 100%;
}
.section-gift-card__text-box .heading {
  font-size: 52px;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0;
  color: #1a1a1a;
}
.section-gift-card__text-box .description {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}
.section-gift-card__text-box .tf-btn {
  margin-top: 22px;
}
@media (max-width: 991px) {
  .section-gift-card .section-gift-card__content {
    padding: 36px 24px;
  }
  .section-gift-card__text-box {
    max-width: 100%;
  }
}

/* Sale mode within gift card section: countdown spacing */
.section-gift-card--sale .section-gift-card__text-box .count-down {
  margin-top: 18px;
}
.section-gift-card--sale .section-gift-card__text-box .count-down .description {
  margin-bottom: 14px;
}
.section-gift-card--sale .section-gift-card__text-box .tf-btn {
  margin-top: 22px;
}

/* Pagination: rotate "previous page" arrow so it points left */
.icon-rotate-180 {
  display: inline-block;
  transform: rotate(180deg);
}

/* ========== Categories / subcategories in box (same style as stone types) ========== */

/* Home: Shop by categories – same layout as Shop by stone types */
.categories-title-row .title {
  margin-bottom: 0;
}
.categories-title-row .categories-view-all {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.categories-home a.brand-item.category-box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid #d5d5d5;
  background-color: #fff;
  padding: 0;
}
.categories-home .category-box-icon {
  max-width: 80px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.categories-home .category-box-name {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Stone types page (e.g. /stone-types/): same card style as product cards – sharp corners, light border */
.tf-brands-source-linklist .collection-item .collection-inner,
#parent .collection-item .collection-inner {
  border-radius: 0;
  border: 1px solid #d5d5d5;
  overflow: hidden;
}
.tf-brands-source-linklist .collection-item .collection-image,
#parent .collection-item .collection-image {
  border-radius: 0;
}
.tf-brands-source-linklist .collection-item .collection-title,
#parent .collection-item .collection-title {
  border-radius: 0;
}

/* Collections & subcategories pages: white box per item, image on top, name below */
.collection-box-grid {
  display: grid;
  gap: 24px;
}
.collection-box-grid .collection-item-box .collection-inner {
  background-color: #fff;
  border-radius: 0;
  border: 1px solid #d5d5d5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.collection-box-grid .collection-item-box .collection-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
}
.collection-box-grid .collection-item-box .collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-box-grid .collection-item-box .collection-content-below {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 16px 12px;
  text-align: center;
  flex: 0 0 auto;
}
.collection-box-grid .collection-item-box .collection-content-below .collection-title {
  background-color: transparent !important;
  color: var(--text, #333);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  line-height: 1.4;
  height: auto;
  padding: 0;
}
.collection-box-grid .collection-item-box .collection-content-below .collection-title:hover {
  background-color: transparent !important;
  color: var(--main);
}
.collection-box-grid .collection-item-box .collection-content-below .collection-title .icon {
  color: inherit;
  margin-left: 4px;
}

/* Browse All Categories dropdown: larger bold text, compact spacing */
#header .header-bottom .tf-list-categories .list-categories-inner .nav-ul-mb {
  padding-top: 10px;
  padding-bottom: 8px;
  padding-inline-start: 18px;
  padding-inline-end: 18px;
}
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item {
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item:last-child {
  border-bottom: none;
}
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item .tf-category-link,
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item .mb-menu-link {
  min-height: 36px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text, #333);
}
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item .tf-category-link:hover,
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item .mb-menu-link:hover {
  color: var(--primary, var(--main, #253d4e));
}
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item .tf-category-link .link,
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item .mb-menu-link .link {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-cat-count {
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.9;
}
#header .header-bottom .tf-list-categories .list-categories-inner .categories-bottom {
  min-height: 44px;
  padding: 10px 18px;
}
#header .header-bottom .tf-list-categories .list-categories-inner .categories-bottom .collection-other-link {
  font-weight: 600;
  font-size: 14px;
}

/* Browse All Categories: open on click only (button), not on hover */
#header .header-bottom .tf-list-categories:hover .list-categories-inner {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  pointer-events: none;
}
#header .header-bottom .tf-list-categories .list-categories-inner.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: all;
}

/* Browse All Categories: row with arrow, flyout submenu – shrink to content to avoid empty right space */
#header .header-bottom .tf-list-categories .list-categories-inner {
  min-width: 0;
  width: fit-content;
}
#header .header-bottom .tf-list-categories .list-categories-inner .list-categories-inner-wrap {
  flex-wrap: nowrap;
}
#header .header-bottom .tf-list-categories .list-categories-inner .list-categories-inner-wrap .nav-ul-mb {
  min-width: 320px;
  width: max-content;
  max-width: 380px;
  flex-shrink: 0;
}
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item.has-children {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#header .header-bottom .tf-list-categories .list-categories-inner .nav-mb-item.has-children .tf-category-link {
  flex: 1;
  min-width: 0;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-cat-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text, #333);
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-cat-arrow:hover {
  color: var(--primary, var(--main, #253d4e));
  background: rgba(0, 0, 0, 0.06);
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-cat-arrow .icon {
  font-size: 12px;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-cat-arrow[aria-expanded="true"] {
  color: var(--primary, var(--main, #253d4e));
  background: rgba(0, 0, 0, 0.06);
}
/* Flyout submenu panel to the right */
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-flyout {
  min-width: 260px;
  max-width: 340px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 18px 14px;
  background: #fff;
  display: none;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-flyout.has-open {
  display: block;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-panel {
  display: none;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-panel.active {
  display: block;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #333);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-list li {
  margin-bottom: 4px;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-list li:last-child {
  margin-bottom: 0;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-list a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text, #333);
  text-decoration: none;
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-list a:hover {
  color: var(--primary, var(--main, #253d4e));
}
#header .header-bottom .tf-list-categories .list-categories-inner .browse-submenu-list .browse-cat-count {
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.9;
}
