/* =========================================================
   TB SHOP - GENERAL
========================================================= */

.tbshop-page {
    width: 100%;
    min-height: 100vh;
    padding: 45px 0 80px;
    background: #f5f7fb;
    font-family: 'Montserrat', sans-serif;
    color: #172033;
}

.tbshop-container {
    width: min(1420px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.tbshop-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.tbshop-heading-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tbshop-heading-line {
    width: 5px;
    height: 65px;
    border-radius: 10px;
    background: linear-gradient(
        180deg,
        #087eff,
        #0054b8
    );
}

.tbshop-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #087eff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.tbshop-title {
    margin: 0;
    color: #111827;
    font-size: 32px;
    font-weight: 800;
}

.tbshop-subtitle {
    margin: 7px 0 0;
    color: #8a94a5;
    font-size: 13px;
}

.tbshop-heading-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    color: #087eff;
    font-size: 24px;
    box-shadow:
        0 10px 30px
        rgba(20, 35, 60, .08);
}


/* =========================================================
   LAYOUT
========================================================= */

.tbshop-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
}

.tbshop-sidebar,
.tbshop-products-area {
    min-width: 0;
}


/* =========================================================
   MOBILE FILTER
========================================================= */

.tbshop-mobile-filter {
    display: none;
}


/* =========================================================
   FILTER CARD
========================================================= */

.tbshop-filter-card {
    margin-bottom: 15px;
    padding: 19px;
    border: 1px solid #e8edf4;
    border-radius: 17px;
    background: #fff;
    box-shadow:
        0 8px 28px
        rgba(25, 45, 80, .05);
}

.tbshop-filter-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.tbshop-filter-header h3 {
    margin: 0;
    color: #202a3b;
    font-size: 14px;
    font-weight: 800;
}

.tbshop-filter-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #edf6ff;
    color: #087eff;
}


/* =========================================================
   SEARCH
========================================================= */

.tbshop-search {
    position: relative;
}

.tbshop-search input {
    width: 100%;
    height: 43px;
    padding: 0 42px 0 13px;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    outline: none;
    background: #fafbfd;
    color: #202a3b;
    font-size: 11px;
    transition: .2s ease;
}

.tbshop-search input:focus {
    border-color: #087eff;
    background: #fff;
}

.tbshop-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 43px;
    border: 0;
    background: transparent;
    color: #087eff;
    cursor: pointer;
}


/* =========================================================
   CATEGORY
========================================================= */

.tbshop-category-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tbshop-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 39px;
    padding: 7px 9px;
    border-radius: 9px;
    color: #606b7c;
    text-decoration: none !important;
    transition: .2s ease;
}

.tbshop-category-item span {
    font-size: 11px;
    font-weight: 600;
}

.tbshop-category-item small {
    min-width: 25px;
    padding: 3px 6px;
    border-radius: 20px;
    background: #f1f4f8;
    color: #8992a1;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
}

.tbshop-category-item:hover,
.tbshop-category-item.tbshop-active {
    background: #edf6ff;
    color: #087eff;
}

.tbshop-category-item:hover small,
.tbshop-category-item.tbshop-active small {
    background: #d8ebff;
    color: #087eff;
}


/* =========================================================
   PRICE
========================================================= */

.tbshop-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tbshop-price-input {
    position: relative;
}

.tbshop-price-input span {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #929baa;
    font-size: 11px;
}

.tbshop-price-input input {
    width: 100%;
    height: 40px;
    padding: 0 7px 0 22px;
    border: 1px solid #e1e6ee;
    border-radius: 9px;
    outline: none;
    background: #fafbfd;
    font-size: 10px;
}

.tbshop-price-input input:focus {
    border-color: #087eff;
}

.tbshop-price-button {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    border: 0;
    border-radius: 9px;
    background: #087eff;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.tbshop-price-button:hover {
    background: #0568d5;
}


/* =========================================================
   FEATURED
========================================================= */

.tbshop-featured-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tbshop-featured-item {
    display: flex;
    gap: 10px;
    text-decoration: none !important;
}

.tbshop-featured-image {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f7fa;
}

.tbshop-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tbshop-featured-info {
    min-width: 0;
}

.tbshop-featured-info strong {
    display: block;
    margin-bottom: 5px;
    color: #273247;
    font-size: 10px;
    line-height: 1.4;
}

.tbshop-featured-info span {
    color: #087eff;
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   ACTIVE FILTERS
========================================================= */

.tbshop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
}

.tbshop-filter-tag,
.tbshop-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.tbshop-filter-tag {
    background: #eaf4ff;
    color: #087eff;
}

.tbshop-filter-clear {
    background: #fff0f0;
    color: #e34d59;
    text-decoration: none !important;
}


/* =========================================================
   TOOLBAR
========================================================= */

.tbshop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 65px;
    margin-bottom: 18px;
    padding: 11px 16px;
    border: 1px solid #e8edf4;
    border-radius: 15px;
    background: #fff;
    box-shadow:
        0 7px 25px
        rgba(25, 45, 80, .045);
}

.tbshop-results {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tbshop-results-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #edf6ff;
    color: #087eff;
}

.tbshop-results strong {
    display: block;
    color: #202a3b;
    font-size: 12px;
}

.tbshop-results-text {
    display: block;
    margin-top: 3px;
    color: #969fad;
    font-size: 9px;
}

.tbshop-stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667183;
    font-size: 10px;
    font-weight: 600;
}

.tbshop-stock-status i {
    color: #21bd70;
    font-size: 7px;
}


/* =========================================================
   GRID
========================================================= */

.tbshop-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   CARD
========================================================= */

.tbshop-product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e8edf4;
    border-radius: 17px;
    background: #fff;
    box-shadow:
        0 7px 25px
        rgba(25, 45, 80, .05);
    transition: .25s ease;
}

.tbshop-product-card:hover {
    transform: translateY(-5px);
    border-color: #d4e5f7;
    box-shadow:
        0 17px 38px
        rgba(25, 45, 80, .11);
}


/* =========================================================
   IMAGE
========================================================= */

.tbshop-product-image {
    position: relative;
    height: 230px;
    padding: 17px;
    background:
        linear-gradient(
            145deg,
            #fafcff,
            #f2f6fb
        );
}

.tbshop-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tbshop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .35s ease;
}

.tbshop-product-card:hover
.tbshop-product-image img {
    transform: scale(1.07);
}

.tbshop-product-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 7px;
    background: #eaf9f1;
    color: #18a867;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}


/* =========================================================
   CONTENT
========================================================= */

.tbshop-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.tbshop-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.tbshop-stars {
    color: #ffb21d;
    font-size: 9px;
    letter-spacing: 1px;
}

.tbshop-rating-text {
    color: #a0a8b5;
    font-size: 9px;
}

.tbshop-product-title {
    min-height: 39px;
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.tbshop-product-title a {
    color: #202a3b;
    text-decoration: none !important;
}

.tbshop-product-title a:hover {
    color: #087eff;
}

.tbshop-product-description {
    display: -webkit-box;
    min-height: 31px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #87909f;
    font-size: 9px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   META
========================================================= */

.tbshop-product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.tbshop-product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #788292;
    font-size: 9px;
}

.tbshop-product-meta i {
    width: 13px;
    color: #087eff;
    text-align: center;
}


/* =========================================================
   PRICE
========================================================= */

.tbshop-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin: 13px 0;
}

.tbshop-price-label {
    color: #9aa3b1;
    font-size: 9px;
}

.tbshop-price strong {
    color: #087eff;
    font-size: 19px;
    font-weight: 800;
}


/* =========================================================
   BUTTON
========================================================= */

.tbshop-buy-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 9px;
    background: #121b2c;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
    transition: .2s ease;
}

.tbshop-buy-button span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tbshop-buy-button:hover {
    background: #087eff;
}

.tbshop-buy-button:hover > i {
    transform: translateX(4px);
}

.tbshop-sku {
    margin: 9px 0 0;
    color: #a1a9b5;
    font-size: 8px;
}


/* =========================================================
   EMPTY
========================================================= */

.tbshop-empty {
    padding: 65px 20px;
    text-align: center;
    border: 1px solid #e8edf4;
    border-radius: 17px;
    background: #fff;
}

.tbshop-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #edf6ff;
    color: #087eff;
    font-size: 24px;
}

.tbshop-empty h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.tbshop-empty p {
    margin: 0 0 18px;
    color: #8993a2;
    font-size: 11px;
}

.tbshop-empty-button {
    display: inline-flex;
    align-items: center;
    padding: 11px 17px;
    border-radius: 8px;
    background: #087eff;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   PAGINATION
========================================================= */

.tbshop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.tbshop-pagination-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #fff;
}

.tbshop-page-number,
.tbshop-page-control {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #687386;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
}

.tbshop-page-number:hover,
.tbshop-page-control:hover {
    background: #edf6ff;
    color: #087eff;
}

.tbshop-page-active {
    background: #087eff;
    color: #fff !important;
}


/* =========================================================
   WHATSAPP
========================================================= */

.tbshop-whatsapp {
    position: fixed;
    z-index: 999;
    right: 22px;
    bottom: 22px;
}

.tbshop-whatsapp a {
    width: 57px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #20c76b;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 27px;
    box-shadow:
        0 10px 30px
        rgba(25, 170, 90, .28);
    transition: .25s ease;
}

.tbshop-whatsapp a:hover {
    transform: translateY(-4px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .tbshop-layout {
        grid-template-columns:
            220px
            minmax(0, 1fr);
    }

    .tbshop-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .tbshop-page {
        padding: 25px 0 60px;
    }

    .tbshop-container {
        width: calc(100% - 24px);
    }

    .tbshop-heading {
        margin-bottom: 20px;
    }

    .tbshop-heading-line {
        width: 4px;
        height: 53px;
    }

    .tbshop-title {
        font-size: 24px;
    }

    .tbshop-subtitle {
        max-width: 250px;
        font-size: 10px;
    }

    .tbshop-heading-icon {
        width: 47px;
        height: 47px;
        border-radius: 13px;
        font-size: 18px;
    }

    .tbshop-layout {
        display: block;
    }

    .tbshop-mobile-filter {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 47px;
        margin-bottom: 10px;
        padding: 0 14px;
        border: 1px solid #e3e8ef;
        border-radius: 11px;
        background: #fff;
        color: #263247;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
    }

    .tbshop-mobile-filter span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tbshop-mobile-filter i {
        color: #087eff;
    }

    .tbshop-sidebar-content {
        display: none;
    }

    .tbshop-sidebar-content.tbshop-filter-open {
        display: block;
        margin-bottom: 15px;
    }

    .tbshop-toolbar {
        min-height: 55px;
        padding: 9px 11px;
    }

    .tbshop-stock-status {
        display: none;
    }

    .tbshop-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tbshop-product-image {
        height: 165px;
        padding: 9px;
    }

    .tbshop-product-content {
        padding: 11px;
    }

    .tbshop-product-title {
        min-height: 36px;
        font-size: 11px;
    }

    .tbshop-product-description {
        font-size: 8px;
    }

    .tbshop-product-meta span {
        font-size: 8px;
    }

    .tbshop-stars {
        font-size: 7px;
    }

    .tbshop-rating-text {
        font-size: 7px;
    }

    .tbshop-price strong {
        font-size: 14px;
    }

    .tbshop-buy-button {
        min-height: 37px;
        padding: 0 9px;
        font-size: 8px;
    }

    .tbshop-buy-button > i {
        display: none;
    }

    .tbshop-sku {
        font-size: 7px;
    }

    .tbshop-whatsapp {
        right: 14px;
        bottom: 14px;
    }

    .tbshop-whatsapp a {
        width: 51px;
        height: 51px;
        font-size: 24px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 430px) {

    .tbshop-grid {
        grid-template-columns: 1fr;
    }

    .tbshop-product-image {
        height: 220px;
    }

    .tbshop-product-title {
        font-size: 13px;
    }

    .tbshop-product-description {
        font-size: 9px;
    }

    .tbshop-price strong {
        font-size: 17px;
    }

}