/* =========================================================
   TC HEALTHCARE INTERNATIONAL
   T-MART STYLES
========================================================= */


/* =========================================================
   ROOT / GENERAL
========================================================= */

.mart-page {
    padding: 80px 0;
    background: #f8fafc;
}

.mart-page .container,
.mart-hero .container,
.mart-cta .container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   T-MART HERO
========================================================= */

.mart-hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #064e3b 0%,
            #047857 50%,
            #065f46 100%
        );

    color: #ffffff;
}

.mart-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -120px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
}

.mart-hero::after {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    bottom: -160px;
    left: -80px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);
}

.mart-hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;
}

.mart-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.88);
}

.mart-eyebrow i {
    font-size: 1rem;
}

.mart-hero h1 {
    margin: 0 0 20px;

    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;

    color: #ffffff;
}

.mart-hero h1 span {
    display: inline-block;
    color: #fbbf24;
}

.mart-hero p {
    max-width: 680px;

    margin: 0 0 30px;

    font-size: 1.08rem;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.88);
}

.mart-hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mart-hero .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: #ffffff;
    color: #047857;

    border: 2px solid #ffffff;
}

.mart-hero .btn-primary:hover {
    background: #fbbf24;
    color: #064e3b;
    border-color: #fbbf24;
}


/* =========================================================
   STORE HEADER
========================================================= */

.mart-store-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 35px;
}

.mart-store-header > div {
    max-width: 720px;
}

.mart-store-header .section-subtitle {
    display: block;
    margin-bottom: 10px;
}

.mart-store-header h2 {
    margin: 0 0 12px;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;

    color: #0f172a;
}

.mart-store-header h2 span {
    color: #059669;
}

.mart-store-header p {
    margin: 0;

    color: #64748b;

    font-size: 1rem;
    line-height: 1.7;
}

.mart-cart-button {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 0 20px;

    border-radius: 10px;

    background: #059669;
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.mart-cart-button:hover {
    background: #047857;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(5, 150, 105, 0.22);
}


/* =========================================================
   TOOLBAR / SEARCH
========================================================= */

.mart-toolbar {
    margin-bottom: 25px;
}

.mart-search-form {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
}

.mart-search-input {
    position: relative;
    flex: 1;
}

.mart-search-input i {
    position: absolute;

    top: 50%;
    left: 17px;

    transform: translateY(-50%);

    color: #94a3b8;

    pointer-events: none;
}

.mart-search-input input {
    width: 100%;
    height: 50px;

    padding: 0 18px 0 46px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;

    color: #0f172a;

    font-family: inherit;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mart-search-input input::placeholder {
    color: #94a3b8;
}

.mart-search-input input:focus {
    border-color: #059669;

    box-shadow:
        0 0 0 3px rgba(5, 150, 105, 0.1);
}

.mart-search-form .btn {
    height: 50px;

    padding: 0 24px;

    border-radius: 10px;
}

.mart-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    height: 50px;
    padding: 0 17px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;
    color: #475569;

    text-decoration: none;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.mart-clear-button:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}


/* =========================================================
   CATEGORIES
========================================================= */

.mart-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 45px;
}

.mart-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 42px;

    padding: 0 17px;

    border: 1px solid #d1d5db;
    border-radius: 999px;

    background: #ffffff;
    color: #475569;

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.mart-category-link i {
    color: #059669;
}

.mart-category-link:hover {
    border-color: #059669;
    color: #047857;

    transform: translateY(-1px);
}

.mart-category-link.active {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

.mart-category-link.active i {
    color: #ffffff;
}


/* =========================================================
   RESULTS HEADING
========================================================= */

.mart-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom: 1px solid #e2e8f0;
}

.mart-results-heading > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.mart-results-heading h3 {
    margin: 0;

    font-size: 1.35rem;

    color: #0f172a;
}

.mart-results-heading span {
    color: #64748b;

    font-size: 0.9rem;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.mart-product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.mart-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 4px 15px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.mart-product-card:hover {
    transform: translateY(-5px);

    border-color: #cbd5e1;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.1);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.mart-product-image {
    position: relative;

    width: 100%;
    height: 260px;

    overflow: hidden;

    background: #f1f5f9;
}

.mart-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.mart-product-card:hover
.mart-product-image img {
    transform: scale(1.04);
}

.mart-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #94a3b8;

    font-size: 3rem;
}


/* =========================================================
   PRODUCT BADGES
========================================================= */

.mart-sale-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 0 11px;

    border-radius: 6px;

    background: #dc2626;
    color: #ffffff;

    font-size: 0.75rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mart-stock-badge {
    position: absolute;

    top: 14px;
    right: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 0 10px;

    border-radius: 6px;

    font-size: 0.72rem;
    font-weight: 700;
}

.mart-stock-badge.out {
    background: #fee2e2;
    color: #b91c1c;
}

.mart-stock-badge.low {
    background: #fef3c7;
    color: #92400e;
}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.mart-product-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px;
}

.mart-product-category {
    display: block;

    margin-bottom: 7px;

    color: #059669;

    font-size: 0.74rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.mart-product-content h3 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 1.12rem;
    line-height: 1.4;
}

.mart-product-content > p {
    display: -webkit-box;

    margin: 0 0 15px;

    overflow: hidden;

    color: #64748b;

    font-size: 0.88rem;
    line-height: 1.65;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* =========================================================
   PRODUCT PRICE
========================================================= */

.mart-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: auto;
    padding-top: 5px;
}

.mart-product-price strong {
    color: #047857;

    font-size: 1.18rem;
    font-weight: 800;
}

.mart-product-price del {
    color: #94a3b8;

    font-size: 0.86rem;
}


/* =========================================================
   PRODUCT STOCK
========================================================= */

.mart-product-stock {
    margin-top: 10px;
    margin-bottom: 16px;

    font-size: 0.78rem;
    font-weight: 600;
}

.stock-available {
    color: #059669;
}

.stock-out {
    color: #dc2626;
}

.stock-available i,
.stock-out i {
    margin-right: 4px;
}


/* =========================================================
   ADD TO CART
========================================================= */

.mart-add-cart-form {
    width: 100%;
}

.mart-add-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 46px;

    padding: 0 16px;

    border: 2px solid #059669;
    border-radius: 9px;

    background: #059669;
    color: #ffffff;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mart-add-cart-button:hover {
    background: #047857;
    border-color: #047857;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(5, 150, 105, 0.2);
}

.mart-add-cart-button.disabled,
.mart-add-cart-button:disabled {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
}


/* =========================================================
   EMPTY PRODUCTS
========================================================= */

.mart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 360px;

    padding: 50px 25px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: #ffffff;

    text-align: center;
}

.mart-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 75px;
    height: 75px;

    margin-bottom: 20px;

    border-radius: 50%;

    background: #ecfdf5;
    color: #059669;

    font-size: 1.8rem;
}

.mart-empty h3 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 1.4rem;
}

.mart-empty p {
    max-width: 500px;

    margin: 0 0 25px;

    color: #64748b;

    line-height: 1.7;
}


/* =========================================================
   T-MART CTA
========================================================= */

.mart-cta {
    padding: 70px 0;

    background:
        linear-gradient(
            135deg,
            #064e3b,
            #047857
        );

    color: #ffffff;
}

.mart-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.mart-cta-content > div {
    max-width: 720px;
}

.mart-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.mart-cta h2 {
    margin: 10px 0 15px;

    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;

    color: #ffffff;
}

.mart-cta h2 span {
    color: #fbbf24;
}

.mart-cta p {
    margin: 0;

    max-width: 650px;

    color: rgba(255, 255, 255, 0.82);

    line-height: 1.75;
}

.mart-cta .btn-light {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 50px;
    padding: 0 24px;

    border-radius: 9px;

    color: #047857;

    font-weight: 700;
}


/* =========================================================
   RESPONSIVE - LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    .mart-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .mart-hero {
        padding: 80px 0;
    }

    .mart-page {
        padding: 60px 0;
    }

    .mart-store-header {
        align-items: flex-start;
    }

    .mart-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .mart-product-image {
        height: 240px;
    }

    .mart-cta {
        padding: 55px 0;
    }

    .mart-cta-content {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    .mart-page .container,
    .mart-hero .container,
    .mart-cta .container {
        width: min(
            100% - 28px,
            1200px
        );
    }


    /* HERO */

    .mart-hero {
        padding: 65px 0;
    }

    .mart-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .mart-hero h1 {
        font-size: 2.45rem;
    }

    .mart-hero p {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* STORE HEADER */

    .mart-store-header {
        display: flex;
        flex-direction: column;

        gap: 20px;

        margin-bottom: 28px;
    }

    .mart-store-header h2 {
        font-size: 2rem;
    }

    .mart-cart-button {
        width: 100%;
    }


    /* SEARCH */

    .mart-search-form {
        flex-wrap: wrap;
    }

    .mart-search-input {
        flex-basis: 100%;
    }

    .mart-search-form .btn {
        flex: 1;
    }

    .mart-clear-button {
        flex: 0 0 auto;
    }


    /* CATEGORIES */

    .mart-categories {
        flex-wrap: nowrap;

        margin-right: -14px;
        padding-right: 14px;

        overflow-x: auto;

        scrollbar-width: thin;
    }

    .mart-category-link {
        flex: 0 0 auto;

        min-height: 40px;

        padding: 0 14px;

        font-size: 0.82rem;
    }


    /* RESULTS */

    .mart-results-heading {
        margin-bottom: 20px;
    }

    .mart-results-heading h3 {
        font-size: 1.15rem;
    }


    /* PRODUCTS */

    .mart-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .mart-product-card {
        border-radius: 12px;
    }

    .mart-product-image {
        height: 185px;
    }

    .mart-product-content {
        padding: 14px;
    }

    .mart-product-category {
        font-size: 0.65rem;
    }

    .mart-product-content h3 {
        font-size: 0.95rem;

        line-height: 1.35;
    }

    .mart-product-content > p {
        font-size: 0.78rem;

        -webkit-line-clamp: 2;
    }

    .mart-product-price {
        gap: 6px;
    }

    .mart-product-price strong {
        font-size: 0.98rem;
    }

    .mart-product-price del {
        font-size: 0.72rem;
    }

    .mart-product-stock {
        font-size: 0.68rem;
    }

    .mart-add-cart-button {
        min-height: 42px;

        padding: 0 8px;

        font-size: 0.75rem;
    }

    .mart-sale-badge,
    .mart-stock-badge {
        min-height: 25px;

        padding: 0 7px;

        font-size: 0.62rem;
    }

    .mart-sale-badge {
        top: 8px;
        left: 8px;
    }

    .mart-stock-badge {
        top: 8px;
        right: 8px;
    }


    /* EMPTY */

    .mart-empty {
        min-height: 300px;

        padding: 40px 18px;
    }


    /* CTA */

    .mart-cta {
        padding: 50px 0;
    }

    .mart-cta h2 {
        font-size: 2rem;
    }

    .mart-cta p {
        font-size: 0.9rem;
    }

    .mart-cta .btn-light {
        width: 100%;
        justify-content: center;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .mart-product-grid {
        grid-template-columns: 1fr;
    }

    .mart-product-image {
        height: 230px;
    }

    .mart-product-content h3 {
        font-size: 1rem;
    }

}