/*!
 * TrendBroBD storefront styles
 * Design tokens mirror the reference storefront: teal primary + orange accent.
 */

:root {
    --tb-primary: #037768;
    --tb-primary-dark: #026052;
    --tb-primary-text: #ffffff;
    --tb-accent: #f68625;
    --tb-accent-dark: #dd7013;

    --tb-ink: #323232;
    --tb-muted: #7b8794;
    --tb-border: #eeeeee;
    --tb-surface: #ffffff;
    --tb-surface-alt: #f7f9fa;
    --tb-danger: #dc3545;
    --tb-success: #1da46e;

    --tb-shadow: 0 2px 8px rgba(99, 99, 99, 0.2);
    --tb-shadow-lg: 0 30px 70px rgba(1, 15, 28, 0.1);

    --tb-radius: 4px;
    --tb-header-h: 65px;
}

/* ------------------------------------------------------------------ reset */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rubik", "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--tb-ink);
    background: var(--tb-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--tb-primary);
}

img {
    max-width: 100%;
    height: auto;
}

tb-logo img {
    
    max-height: 100px;
    width: auto;
    
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font: inherit;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--tb-primary);
    color: #fff;
}

.text-muted-2 {
    color: var(--tb-muted) !important;
}

.text-primary-tb {
    color: var(--tb-primary) !important;
}

.bg-surface-alt {
    background: var(--tb-surface-alt) !important;
}

/* ------------------------------------------------------------- typography */

h1, h2, h3, h4, h5, h6 {
    color: var(--tb-ink);
    font-weight: 500;
    line-height: 1.3;
}

.section_padding {
    padding: 45px 0;
}

.section_padding_top {
    padding-top: 45px;
}

.section_padding_bottom {
    padding-bottom: 45px;
}

.page_title {
    font-size: 26px;
    font-weight: 600;
}

.page_subtitle {
    color: var(--tb-muted);
    font-size: 15px;
}

/* Section heading with the double-underline ornament. */
.section_title {
    position: relative;
    margin-bottom: 26px;
}

.section_title h2 {
    font-size: 22px;
    font-weight: 600;
    text-transform: capitalize;
}

.section_title .title_bottom_underline {
    width: 70px;
    height: 3px;
    margin: 10px auto 0;
    border: 0;
    background: var(--tb-primary);
    border-radius: 3px;
}

.section_title .title_bottom_over_underline {
    width: 34px;
    height: 3px;
    margin: 0 auto;
    border: 0;
    background: var(--tb-accent);
    border-radius: 3px;
    transform: translateY(-5px);
}

.section_head_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tb-border);
}

.section_head_row h2 {
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

/* ----------------------------------------------------------------- buttons */

.btn {
    border-radius: var(--tb-radius);
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(3, 119, 104, 0.25);
}

.btn-tb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--tb-primary);
    background: var(--tb-primary);
    color: var(--tb-primary-text);
}

.btn-tb:hover {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
    color: #fff;
}

.btn-tb-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--tb-primary);
    background: transparent;
    color: var(--tb-primary);
}

.btn-tb-outline:hover {
    background: var(--tb-primary);
    color: #fff;
}

.btn-tb-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--tb-ink);
    background: transparent;
    color: var(--tb-ink);
}

.btn-tb-ghost:hover {
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: #fff;
}

.btn-tb-block {
    width: 100%;
}

.btn-tb:disabled,
.btn-tb.disabled,
.btn_disable_add_to_cart {
    background: #b9c2c8 !important;
    border-color: #b9c2c8 !important;
    color: #fff !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ------------------------------------------------------------------ header */

.header_top {
    border-bottom: 1px solid var(--tb-border);
    background: var(--tb-surface-alt);
    font-size: 14px;
}

.header_top .tb-top-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
    margin: 0;
    padding: 4px 0;
}

.header_top .tb-top-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header_top .tb-top-list i {
    color: var(--tb-primary);
}

.header_top .tb-top-link {
    color: var(--tb-ink);
}

.header_top .tb-top-link:hover {
    color: var(--tb-primary);
}

.header_top .tb-top-auth {
    padding: 1px 14px;
    border-radius: 3px;
    background: var(--tb-primary);
    color: #fff;
}

.header_top .tb-top-auth:hover {
    color: var(--tb-accent);
}

.header_middle {
    padding: 12px 0;
    background: #fff;
}

.header_middle.sticky_header.fixed {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 990;
    padding: 6px 0;
    background: #fff;
    box-shadow: var(--tb-shadow);
    animation: tbSlideDown 0.35s ease;
}

@keyframes tbSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.tb-logo img {
    max-height: 100px;
    width: auto;
}

.tb-logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--tb-primary);
    text-transform: uppercase;
}

.tb-logo-text span {
    color: var(--tb-accent);
}

.header_middle_search {
    position: relative;
}

.header_middle_search input {
    width: 100%;
    height: 52px;
    padding: 0 58px 0 20px;
    border: 1px solid var(--tb-primary);
    border-radius: var(--tb-radius);
    outline: none;
}

.header_middle_search input:focus {
    box-shadow: 0 0 0 3px rgba(3, 119, 104, 0.12);
}

.header_middle_search .tb-search-btn {
    position: absolute;
    inset: 0 0 0 auto;
    width: 56px;
    border: 0;
    background: transparent;
    color: var(--tb-primary);
    font-size: 19px;
}

.tb-suggest {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: 0 0 var(--tb-radius) var(--tb-radius);
    box-shadow: var(--tb-shadow);
    z-index: 1000;
    display: none;
}

.tb-suggest.is-open {
    display: block;
}

.tb-suggest li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--tb-border);
}

.tb-suggest li:last-child {
    border-bottom: 0;
}

.tb-suggest img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.tb-suggest .tb-suggest-name {
    font-size: 14px;
    line-height: 1.35;
}

.tb-suggest .tb-suggest-price {
    font-size: 13px;
    color: var(--tb-primary);
    font-weight: 600;
}

.tb-suggest .tb-suggest-price s {
    color: var(--tb-muted);
    font-weight: 400;
    margin-left: 6px;
}

.header_middle_icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.tb-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tb-ink);
}

.tb-icon-link i {
    font-size: 24px;
    color: var(--tb-primary);
}

.tb-icon-link .tb-icon-text small {
    display: block;
    font-size: 12px;
    color: var(--tb-muted);
    line-height: 1.2;
}

.tb-icon-link .tb-icon-text strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.tb-icon-link:hover .tb-icon-text strong {
    color: var(--tb-primary);
}

.tb-badge {
    position: absolute;
    top: -8px;
    left: 18px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--tb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.tb-divider-v {
    width: 1px;
    height: 38px;
    background: var(--tb-border);
}

/* Main navigation */
.header_bottom {
    background: #fff;
    border-top: 1px solid var(--tb-border);
}

.main_menu > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.main_menu > ul > li {
    position: relative;
}

.main_menu_link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 14px;
    color: var(--tb-ink);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.main_menu_link i {
    font-size: 11px;
    color: var(--tb-muted);
}

.main_menu > ul > li:hover > .main_menu_link,
.main_menu > ul > li > .main_menu_link.active {
    color: var(--tb-accent);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 6px 0;
    background: #fff;
    border-radius: 0 0 var(--tb-radius) var(--tb-radius);
    box-shadow: var(--tb-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.main_menu > ul > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li {
    position: relative;
    border-bottom: 1px solid var(--tb-border);
}

.submenu li:last-child {
    border-bottom: 0;
}

.submenu_link {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    text-transform: capitalize;
    color: var(--tb-ink);
}

.submenu li:hover > .submenu_link {
    padding-left: 24px;
    color: var(--tb-accent);
    background: #f4f4f4;
}

.submenu .submenu {
    top: 0;
    left: 100%;
    border-radius: 0 var(--tb-radius) var(--tb-radius) 0;
}

.submenu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------------------------ mini cart */

.mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1055;
    width: min(400px, 100vw);
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mini-cart.is-open {
    transform: translateX(0);
}

.mini-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--tb-border);
}

.mini-cart__header h5 {
    font-size: 16px;
    font-weight: 600;
}

.mini-cart__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 18px;
}

.mini-cart__line {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tb-border);
}

.mini-cart__line img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--tb-radius);
    border: 1px solid var(--tb-border);
    flex-shrink: 0;
}

.mini-cart__line-body {
    flex: 1;
    min-width: 0;
}

.mini-cart__line-name {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.mini-cart__line-variant {
    font-size: 12px;
    color: var(--tb-muted);
}

.mini-cart__line-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.tb-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    overflow: hidden;
}

.tb-qty button {
    width: 28px;
    height: 30px;
    border: 0;
    background: var(--tb-surface-alt);
    color: var(--tb-ink);
    line-height: 1;
}

.tb-qty button:hover:not(:disabled) {
    background: var(--tb-primary);
    color: #fff;
}

.tb-qty button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tb-qty input {
    width: 40px;
    height: 30px;
    border: 0;
    text-align: center;
    font-size: 14px;
    background: #fff;
}

.tb-qty input:focus {
    outline: none;
}

.mini-cart__footer {
    padding: 16px 18px;
    border-top: 1px solid var(--tb-border);
    background: var(--tb-surface-alt);
}

.mini-cart__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.mini-cart__row.is-total {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--tb-border);
}

.tb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.tb-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------------------------------- slider */

.banner_area .owl-item img {
    width: 100%;
    display: block;
}

.slider_banner_active .owl-nav button,
.category_active .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tb-primary);
    border-radius: 50%;
    background: var(--tb-primary);
    color: #fff;
    font-size: 18px;
    transition: 0.25s;
}

.slider_banner_active .owl-nav button:hover,
.category_active .owl-nav button:hover {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
}

.slider_banner_active .owl-nav .owl-prev,
.category_active .owl-nav .owl-prev {
    left: 14px;
}

.slider_banner_active .owl-nav .owl-next,
.category_active .owl-nav .owl-next {
    right: 14px;
}

.slider_banner_active .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.slider_banner_active .owl-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d3dade;
    transition: 0.25s;
}

.slider_banner_active .owl-dots button.active {
    width: 26px;
    border-radius: 6px;
    background: var(--tb-primary);
}

/* -------------------------------------------------------- delivery features */

.service_card_container {
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    overflow: hidden;
}

.top_service_sigle_card {
    height: 100%;
    padding: 22px 20px;
    border-right: 1px solid var(--tb-border);
    transition: 0.3s;
}

.top_service_sigle_card:last-child {
    border-right: 0;
}

.top_service_sigle_card:hover {
    background: var(--tb-surface-alt);
}

.top_servie_item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.top_servie_item i {
    font-size: 26px;
    color: var(--tb-primary);
    margin-top: 3px;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.top_service_sigle_card:hover .top_servie_item i {
    transform: scaleX(-1);
}

.top_servie_item h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.top_servie_item p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--tb-muted);
}

/* ------------------------------------------------------------- categories */

.category_item_link {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 8px;
    transition: 0.3s;
}

.category_item_link:hover {
    transform: translateY(-3px);
    box-shadow: var(--tb-shadow);
}

.category_image {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background: var(--tb-surface-alt);
}

.category_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category_item_link:hover .category_image img {
    transform: scale(1.06);
}

.category_name {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    max-width: 90%;
    padding: 5px 14px;
    background: #fff;
    border-radius: var(--tb-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.category_name p {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category_item_link:hover .category_name p {
    color: var(--tb-primary);
}

/* ----------------------------------------------------------- product card */

.product_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 9px;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    background: #fff;
    transition: 0.3s;
}

.product_card:hover {
    border-color: transparent;
    box-shadow: 1px 14px 22px -14px rgba(0, 0, 0, 0.45);
}

.product_image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
    background: var(--tb-surface-alt);
}

.product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product_card:hover .product_image img {
    transform: scale(1.05);
}

.product_image .product_badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.badge-tb-discount {
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--tb-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.badge-tb-new {
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--tb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5;
}

.badge-tb-out {
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--tb-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5;
}

.product_wishlist_btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--tb-ink);
    font-size: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
    transition: 0.25s;
    z-index: 2;
}

.product_wishlist_btn:hover,
.product_wishlist_btn.is-active {
    color: var(--tb-danger);
}

.product_content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px 4px 4px;
}

.product_name {
    font-size: 15px;
    line-height: 1.4;
    min-height: 42px;
    margin-bottom: 6px;
}

.product_name a {
    color: var(--tb-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product_name a:hover {
    color: var(--tb-primary);
}

.product_price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 9px;
}

.product_new_price {
    font-size: 17px;
    font-weight: 700;
    color: var(--tb-ink);
}

.product_discount_price {
    font-size: 14px;
    font-weight: 600;
    color: var(--tb-accent);
    text-decoration: line-through;
}

.product_meta {
    font-size: 12px;
    color: var(--tb-muted);
    margin-bottom: 8px;
}

.product_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.product_btn_link {
    flex: 1 1 calc(50% - 3px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 7px 4px;
    border: 1px solid var(--tb-ink);
    border-radius: 4px;
    background: #fff;
    color: var(--tb-ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    transition: 0.25s;
}

.product_btn_link:hover {
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: #fff;
}

.product_btn_link.is-buy {
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: #fff;
}

.product_btn_link.is-buy:hover {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
    color: #fff;
}

.product_btn_link.disabled,
.product_btn_link:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.product_stock_line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--tb-success);
    margin-bottom: 6px;
}

.product_stock_line.is-low {
    color: var(--tb-accent);
}

.product_stock_line.is-out {
    color: var(--tb-danger);
}

/* -------------------------------------------------------------- ratings */

.tb-stars {
    display: inline-flex;
    gap: 1px;
    color: #f5a623;
    font-size: 13px;
}

.tb-stars .is-empty {
    color: #dfe3e6;
}

/* ------------------------------------------------------- banner + reviews */

.advertisement_image {
    overflow: hidden;
    border-radius: 6px;
}

.advertisement_image img {
    width: 100%;
    transition: transform 0.4s ease;
}

.advertisement_image:hover img {
    transform: scale(1.03);
}

.testimonial_card {
    height: 100%;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
}

.testimonial_card p {
    font-size: 14px;
    color: var(--tb-muted);
    line-height: 1.7;
}

.testimonial_author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.testimonial_author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial_author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.testimonial_author span {
    font-size: 12px;
    color: var(--tb-muted);
}

/* ----------------------------------------------------------------- footer */

.footer_area {
    margin-top: 20px;
    padding-top: 55px;
    background: var(--tb-surface-alt);
    border-top: 1px solid var(--tb-border);
}

.footer_logo img {
    max-height: 48px;
}

.footer_description {
    margin-top: 14px;
    font-size: 14px;
    color: var(--tb-muted);
    line-height: 1.75;
    max-width: 420px;
}

.footer_title {
    margin-bottom: 16px;
}

.footer_title h4 {
    position: relative;
    display: inline-block;
    font-size: 19px;
    font-weight: 600;
    padding-bottom: 8px;
}

.footer_title h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55%;
    height: 2px;
    background: var(--tb-primary);
}

.footer_list li {
    margin-bottom: 9px;
}

.footer_list_link {
    font-size: 15px;
    color: var(--tb-ink);
}

.footer_list_link:hover {
    color: var(--tb-accent);
    padding-left: 4px;
}

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

.footer_social_link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tb-border);
    border-radius: 50%;
    background: #fff;
    font-size: 17px;
    color: var(--tb-ink);
    transition: 0.25s;
}

.footer_social_link:hover {
    border-color: var(--tb-primary);
    color: var(--tb-primary);
    transform: translateY(-3px);
}

.footer_contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--tb-muted);
}

.footer_contact i {
    color: var(--tb-primary);
    margin-top: 4px;
}

.footer_payment img {
    max-width: 100%;
    border-radius: 6px;
}

.footer_bottom {
    margin-top: 40px;
    padding: 14px 0;
    border-top: 1px solid var(--tb-border);
    font-size: 14px;
    color: var(--tb-muted);
}

/* ------------------------------------------------------- floating widgets */

.tb-float {
    position: fixed;
    right: 16px;
    bottom: 92px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tb-float button {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: 0.25s;
}

.tb-float button:hover {
    transform: translateY(-3px);
}

.tb-float .is-primary { background: var(--tb-primary); }
.tb-float .is-whatsapp { background: #25d366; }
.tb-float .is-messenger { background: #2a64e7; }
.tb-float .is-top { background: var(--tb-ink); }

.tb-float__tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    padding: 6px 12px;
    border-radius: var(--tb-radius);
    background: var(--tb-ink);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
}

.tb-float button:hover .tb-float__tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Mobile bottom bar */
.tb-mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1035;
    display: none;
    background: #fff;
    border-top: 1px solid var(--tb-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.tb-mobile-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 4px;
    font-size: 11px;
    color: var(--tb-ink);
}

.tb-mobile-bar a i {
    font-size: 18px;
    color: var(--tb-primary);
}

.tb-mobile-bar a:hover {
    color: var(--tb-accent);
}

@media (max-width: 991.98px) {
    .tb-mobile-bar {
        display: flex;
    }

    body {
        padding-bottom: 58px;
    }

    .tb-float {
        bottom: 70px;
    }
}

/* ------------------------------------------------------------------ forms */

.tb-form .form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.tb-form .form-control,
.tb-form .form-select {
    padding: 10px 14px;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    outline: none;
    transition: 0.2s;
}

.tb-form .form-control:focus,
.tb-form .form-select:focus {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(3, 119, 104, 0.12);
}

.tb-form .form-control.is-invalid,
.tb-form .form-select.is-invalid {
    border-color: var(--tb-danger);
}

.tb-form .invalid-feedback {
    font-size: 13px;
}

.form-check-input:checked {
    background-color: var(--tb-primary);
    border-color: var(--tb-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(3, 119, 104, 0.2);
    border-color: var(--tb-primary);
}

.tb-panel {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    padding: 22px;
}

.tb-panel--shadow {
    box-shadow: var(--tb-shadow-lg);
}

.tb-panel__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tb-border);
}

/* --------------------------------------------------------------- tables */

.tb-table {
    width: 100%;
    border-collapse: collapse;
}

.tb-table th {
    padding: 12px 14px;
    background: var(--tb-surface-alt);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.tb-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--tb-border);
    font-size: 15px;
    vertical-align: middle;
}

.tb-table tbody tr:hover {
    background: #fcfdfd;
}

.tb-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--tb-radius);
    border: 1px solid var(--tb-border);
}

.tb-table-wrap {
    overflow-x: auto;
}

.tb-empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--tb-muted);
}

.tb-empty i {
    font-size: 42px;
    color: #d7dee2;
    margin-bottom: 12px;
}

/* ----------------------------------------------------------- breadcrumb */

.tb-breadcrumb {
    font-size: 14px;
}

.tb-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.tb-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tb-ink);
}

.tb-breadcrumb li + li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #c3ccd1;
    font-size: 12px;
}

.tb-breadcrumb a:hover {
    color: var(--tb-primary);
}

/* --------------------------------------------------------- shop filters */

.shop_layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .shop_layout {
        grid-template-columns: 1fr;
    }
}

.filter_group + .filter_group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tb-border);
}

.filter_group h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.filter_group .form-check {
    margin-bottom: 6px;
    font-size: 14px;
}

.filter_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter_chip {
    padding: 4px 12px;
    border: 1px solid var(--tb-primary);
    border-radius: 3px;
    background: var(--tb-primary);
    color: #fff;
    font-size: 13px;
    text-transform: capitalize;
    transition: 0.2s;
}

.filter_chip:hover,
.filter_chip.is-active {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
}

.filter_chip.is-muted {
    background: #fff;
    border-color: var(--tb-border);
    color: var(--tb-ink);
}

.filter_chip.is-muted:hover {
    border-color: var(--tb-primary);
    color: var(--tb-primary);
}

.shop_toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: var(--tb-surface-alt);
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    font-size: 14px;
}

.shop_sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------- single product */

.single_product_area .sp_gallery {
    position: sticky;
    top: 90px;
}

.sp_thumb_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp_thumb {
    width: 74px;
    height: 74px;
    padding: 0;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    overflow: hidden;
    background: #fff;
}

.sp_thumb.is-active {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 2px rgba(3, 119, 104, 0.18);
}

.sp_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp_main_image {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    aspect-ratio: 1 / 1;
    background: var(--tb-surface-alt);
    cursor: zoom-in;
}

.sp_main_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    /* The magnifier stays anchored on whatever sits under the cursor: the
       origin tracks --x/--y, so the hovered detail never drifts. */
    transform-origin: var(--x, 50%) var(--y, 50%);
    will-change: transform;
}

.sp_main_image.zooming img {
    transform: scale(var(--sp-zoom, 2));
}

.sp_main_image .sp_discount_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 3px;
    background: var(--tb-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* ------------------------------------------------------- image lightbox */

.tb_lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    padding: 20px;
    background: rgba(14, 18, 22, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* visibility snaps open immediately — otherwise it is still `hidden` on the
       first frame and the close button cannot take focus — and only flips back
       once the fade-out has finished. */
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.tb_lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.tb_lightbox_stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.tb_lightbox_img {
    max-width: min(92vw, 1500px);
    max-height: 78vh;
    object-fit: contain;
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--s, 1));
    transition: transform 0.18s ease;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.tb_lightbox.is-zoomed .tb_lightbox_img { cursor: grab; }
.tb_lightbox.is-dragging .tb_lightbox_img { cursor: grabbing; }

/* No easing mid-drag or the photograph lags behind the finger. */
.tb_lightbox.is-dragging .tb_lightbox_img { transition: none; }

.tb_lightbox_btn {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tb_lightbox_btn:hover {
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: #fff;
}

.tb_lightbox_close { top: 18px; right: 18px; font-size: 16px; }

.tb_lightbox_nav {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 30px;
    transform: translateY(-50%);
}

.tb_lightbox_prev { left: 16px; }
.tb_lightbox_next { right: 16px; }

.tb_lightbox.is-single .tb_lightbox_nav { display: none; }

.tb_lightbox_bar {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.tb_lightbox_bar .tb_lightbox_btn {
    position: static;
    width: 34px;
    height: 34px;
    font-size: 17px;
}

.tb_lightbox_count {
    min-width: 46px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-align: center;
}

@media (max-width: 576px) {
    .tb_lightbox { padding: 10px; }
    .tb_lightbox_img { max-height: 72vh; }
    .tb_lightbox_nav { width: 40px; height: 40px; font-size: 26px; }
    .tb_lightbox_prev { left: 8px; }
    .tb_lightbox_next { right: 8px; }
}

.sp_title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.sp_price_box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
    margin: 14px 0 18px;
}

.sp_price_now {
    font-size: 30px;
    font-weight: 700;
    color: var(--tb-primary);
}

.sp_price_old {
    font-size: 18px;
    color: var(--tb-accent);
    text-decoration: line-through;
}

.sp_price_save {
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-success);
    background: rgba(29, 164, 110, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.sp_option_label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.sp_option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sp_option span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 46px;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
}

.sp_option input:checked + span {
    border-color: var(--tb-primary);
    background: var(--tb-primary);
    color: #fff;
}

.sp_option input:disabled + span {
    cursor: not-allowed;
    color: #b9c2c8;
    background: #f4f5f6;
    text-decoration: line-through;
}

.sp_option input:not(:disabled):hover + span {
    border-color: var(--tb-primary);
}

.sp_stock_note {
    font-size: 13px;
}

.sp_stock_note.is-out {
    color: var(--tb-danger);
}

.sp_stock_note.is-low {
    color: var(--tb-accent);
}

.sp_stock_note.is-in {
    color: var(--tb-success);
}

.sp_meta_row {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--tb-muted);
    padding: 5px 0;
}

.sp_meta_row strong {
    min-width: 92px;
    color: var(--tb-ink);
    font-weight: 500;
}

.sp_buy_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.sp_buy_row .tb-qty input {
    width: 56px;
    height: 46px;
    font-size: 16px;
}

.sp_buy_row .tb-qty button {
    width: 42px;
    height: 46px;
    font-size: 16px;
}

.sp_buy_row .btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 18px;
    font-size: 15px;
}

.sp_trust_list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--tb-muted);
    border-bottom: 1px dashed var(--tb-border);
}

.sp_trust_list i {
    color: var(--tb-primary);
    width: 20px;
    text-align: center;
}

.tb-tabs {
    border-bottom: 1px solid var(--tb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tb-tabs button {
    padding: 12px 22px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--tb-muted);
}

.tb-tabs button.is-active {
    color: var(--tb-primary);
    border-bottom-color: var(--tb-primary);
}

.tb-tab-pane {
    display: none;
    padding-top: 22px;
}

.tb-tab-pane.is-active {
    display: block;
}

.tb-tab-pane p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.tb-tab-pane ul {
    margin: 0 0 14px 20px;
    list-style: disc;
}

.tb-tab-pane li {
    margin-bottom: 6px;
}

/* ------------------------------------------------------------- checkout */

.checkout_layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .checkout_layout {
        grid-template-columns: 1fr;
    }
}

.pay-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.pay-option:hover {
    border-color: var(--tb-primary);
}

.pay-option:has(input:checked) {
    border-color: var(--tb-primary);
    background: rgba(3, 119, 104, 0.04);
}

.pay-option.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
    background: var(--tb-surface-alt);
}

.pay-option strong {
    display: block;
    font-size: 15px;
}

.pay-option small {
    color: var(--tb-muted);
    font-size: 13px;
}

.summary_row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 15px;
}

.summary_row.is-total {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px dashed var(--tb-border);
    font-size: 20px;
    font-weight: 700;
}

.summary_row.is-discount {
    color: var(--tb-success);
}

.tb-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--tb-muted);
}

.tb-steps .is-done {
    color: var(--tb-success);
}

.tb-steps .is-current {
    color: var(--tb-primary);
    font-weight: 600;
}

.tb-steps span + span::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #c3ccd1;
    font-size: 11px;
}

/* ------------------------------------------------------------- tracking */

.track_timeline {
    position: relative;
    padding-left: 34px;
}

.track_timeline::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--tb-border);
}

.track_step {
    position: relative;
    padding-bottom: 22px;
}

.track_step:last-child {
    padding-bottom: 0;
}

.track_step::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -30px;
    top: 2px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tb-border);
    color: var(--tb-border);
    font-size: 10px;
}

.track_step.is-done::before {
    content: "\f00c";
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: #fff;
}

.track_step.is-current::before {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(246, 134, 37, 0.18);
}

.track_step h5 {
    font-size: 15px;
    font-weight: 600;
}

.track_step p {
    font-size: 13px;
    color: var(--tb-muted);
}

/* ------------------------------------------------------- status history */

.tb-history__item {
    display: flex;
    gap: 12px;
    padding-bottom: 18px;
    position: relative;
}

.tb-history__item:last-child {
    padding-bottom: 0;
}

/* The rule joining one entry to the next, drawn behind the dots. */
.tb-history__item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 18px;
    bottom: 0;
    width: 1px;
    background: var(--tb-border, #e4e7ec);
}

.tb-history__dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--tb-primary, #037768);
    box-shadow: 0 0 0 3px #fff;
}

.tb-history__item:last-child .tb-history__dot {
    background: var(--tb-muted, #8a94a6);
}

/* ----------------------------------------------------------------- toast */

.tb-toast-host {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
}

.tb-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--tb-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    border-left: 4px solid var(--tb-primary);
    font-size: 14px;
    animation: tbToastIn 0.25s ease;
}

.tb-toast.is-error {
    border-left-color: var(--tb-danger);
}

.tb-toast.is-success {
    border-left-color: var(--tb-success);
}

.tb-toast i {
    font-size: 17px;
    margin-top: 1px;
    color: var(--tb-primary);
}

.tb-toast.is-error i { color: var(--tb-danger); }
.tb-toast.is-success i { color: var(--tb-success); }

@keyframes tbToastIn {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* --------------------------------------------------------------- helpers */

.tb-divider {
    height: 1px;
    background: var(--tb-border);
    border: 0;
    margin: 22px 0;
}

.tb-scroll-x {
    overflow-x: auto;
}

.tb-nowrap {
    white-space: nowrap;
}

.pagination {
    gap: 5px;
    margin-top: 26px;
}

.page-link {
    color: var(--tb-ink);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius) !important;
    padding: 8px 14px;
}

.page-link:hover {
    background: var(--tb-surface-alt);
    color: var(--tb-primary);
}

.page-item.active .page-link {
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: #fff;
}

.alert {
    border-radius: var(--tb-radius);
    border: 0;
    font-size: 15px;
}

.alert-success {
    background: rgba(29, 164, 110, 0.12);
    color: #10694a;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #a02633;
}

.alert-info {
    background: rgba(3, 119, 104, 0.1);
    color: var(--tb-primary-dark);
}

.badge {
    font-weight: 600;
    border-radius: 3px;
}
