/**
 * Homepage (index.php) — shops/category grids, pagination, location
 * banner card, sidebar, and right rail. Extracted from index.php's own
 * inline <style> block. Several rules here deliberately override base
 * rules already in dist/css/tauma.css (e.g. .shop-showcase-card__media's
 * aspect-ratio) — this file's <link> must stay after tauma.css's in
 * index.php's <head> for those overrides to keep winning the cascade.
 */

/* ── Pagination styles ── */
.t-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: var(--section-gap, 20px) !important;
    padding: 10px 0;
    font-family: inherit;
}
.t-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.t-pagination-item {
    display: inline-block;
}
.t-pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #ececec;
    background: #fff;
    color: #7e7e7e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
.t-pagination-button:hover:not(:disabled) {
    background: #3bb77e;
    color: #fff;
    border-color: #3bb77e;
}
.t-pagination-button.active {
    background: #3bb77e;
    color: #fff;
    border-color: #3bb77e;
}
.t-pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7f8f9;
}
.t-pagination-info {
    font-size: 14px;
    color: #7e7e7e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}
.t-pagination-select-wrapper {
    position: relative;
    display: inline-block;
}
.t-pagination-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #253d4e;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23253d4e' d='M0 0.5L5 5.5L10 0.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
}

/* ── Existing category track styles (preserved) ── */
.featured-cats--town .featured-cats__head { align-items: center; }
.featured-cats--town .featured-cats__title small { display: inline-block; margin-left: 8px; font-size: 13px; color: #64748b; font-weight: 500; }
.featured-cats--town .featured-cats__track { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 8px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.featured-cats--town .featured-cats__track::-webkit-scrollbar { height: 6px; }
.featured-cats--town .featured-cats__track::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.town-category-card { min-width: 104px; max-width: 104px; text-align: center; scroll-snap-align: start; flex: 0 0 auto; }
.town-category-card__circle { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid #dbeee2; background: linear-gradient(145deg, #f8fdf9 0%, #ecf8ef 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(15,23,42,0.08); overflow: hidden; font-weight: 700; color: #2f855a; font-size: 22px; }
.town-category-card__circle img { width: 100%; height: 100%; object-fit: cover; }
.town-category-card__name { font-size: 13px; line-height: 1.2; color: #253d4e; min-height: 32px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.town-category-card__meta { font-size: 11px; color: #7b8a97; }
.shop-showcase-card__wish.is-liked { color: #e5195b !important; }
.shop-showcase-card {
    border: 1px solid #f2f2f2;
    border-radius: var(--def-border-radius, 15px);
    padding: 0;
    background: #fff;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.shop-showcase-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
}
.shop-showcase-card__media {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    aspect-ratio: 16 / 5 !important;
}



/* ── Modern Location Banner Card V2 ── */
.t-banner-card {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}
.t-banner-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.t-banner-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.t-banner-card__overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--overlay-width, 100%);
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) var(--fade-start, 60%), rgba(255, 255, 255, 0) 100%);
    transition: width 0.3s ease;
}
.t-banner-card__content-inner {
    display: inline-block;
    width: max-content;
    max-width: 100%;
}
.t-banner-card__content {
    position: relative;
    z-index: 2;
    padding: 28px 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.t-banner-card__welcome {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
}
.t-banner-card__title {
    font-weight: 700;
    color: #111827;
    margin: 2px 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.t-banner-card__title .material-symbols-outlined {
    color: #3bb77e;
    font-size: 28px;
}
.t-banner-card__desc {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.4;
}
.t-banner-card__trust {
    display: flex;
    align-items: center;
    gap: 12px;
}
.t-banner-card__avatars {
    display: flex;
    align-items: center;
    margin-right: 4px;
}
.t-banner-card__avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    margin-left: -8px;
}
.t-banner-card__avatars img:first-child {
    margin-left: 0;
}
.t-banner-card__avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3bb77e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
}
.t-banner-card__trust-text {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.t-banner-card__badges {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    z-index: 2;
}
.t-banner-card__badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.t-banner-card__badge span:first-child {
    color: #3bb77e;
    font-size: 16px;
}
.t-banner-card__badge span:last-child {
    font-size: 11px;
    font-weight: 700;
    color: #111827;
}
@media (max-width: 900px) {
    .t-banner-card__badges {
        display: none;
    }
}
@media (max-width: 767px) {
    .t-banner-card {
        margin-top: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-radius: 10px !important;
        height: 180px !important;
    }
    .t-banner-card__overlay {
        width: 50% !important;
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0) 100%) !important;
    }
    .t-banner-card__content {
        padding: 16px 20px !important;
        width: 50% !important;
    }
    .t-banner-card__content-inner {
        width: 100% !important;
        white-space: normal !important;
    }
    .t-banner-card__title {
        font-size: 34px !important;
    }
    .t-banner-card__desc {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    .t-banner-card__trust-text {
        display: none !important;
    }
    .shops-showcase__title{
        font-size: 20px !important;
    }
}

/* ── Shop by Category (image grid style) ── */
.t-cat-section { margin-bottom: var(--section-gap, 20px) !important; }
.t-cat-section .t-section-title { color: #000000 !important; }
.t-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.t-section-title { font-size: 1.25rem; font-weight: 800; color: #253d4e; margin: 0; }
.t-section-link { font-size: 13.5px; color: #3bb77e; font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.t-section-link:hover { color: #2a9a60; text-decoration: none; }
.t-cat-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 8px 4px 4px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    -webkit-overflow-scrolling: touch;
}
.t-cat-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.t-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: var(--def-border-radius, 15px);
    border: 1px solid #f2f2f2;
    background: #fff;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    overflow: hidden;
    padding: 0;
}
#tCatGrid .t-cat-item {
    flex: 0 0 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    width: 120px !important;
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
}
@media (max-width: 1300px) {
    .t-cat-grid { gap: 12px; }
    .t-cat-item {
        flex: 0 0 calc((100% - (6 * 12px)) / 6.5); /* 6.5 items - half card peeks on right */
        min-width: calc((100% - (6 * 12px)) / 6.5);
    }
}
@media (max-width: 1050px) {
    .t-cat-item {
        flex: 0 0 calc((100% - (5 * 12px)) / 5.5); /* 5.5 items */
        min-width: calc((100% - (5 * 12px)) / 5.5);
    }
}
@media (max-width: 850px) {
    .t-cat-item {
        flex: 0 0 calc((100% - (4 * 12px)) / 4.5); /* 4.5 items */
        min-width: calc((100% - (4 * 12px)) / 4.5);
    }
}
@media (max-width: 680px) {
    .t-cat-item {
        flex: 0 0 calc((100% - (3 * 10px)) / 3.5); /* 3.5 items */
        min-width: calc((100% - (3 * 10px)) / 3.5);
    }
}
@media (max-width: 480px) {
    .t-cat-item {
        flex: 0 0 calc((100% - (2 * 10px)) / 2.5); /* 2.5 items */
        min-width: calc((100% - (2 * 10px)) / 2.5);
        border-radius: 12px;
    }
}
@media (max-width: 360px) {
    .t-cat-item {
        flex: 0 0 calc((100% - (2 * 8px)) / 2.3); /* 2.3 items */
        min-width: calc((100% - (2 * 8px)) / 2.3);
    }
}

/* Scroll Shadows Styling */
.scroll-shadow {
    position: absolute;
    top: 0;
    bottom: 4px;
    width: 30px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 10;
}
.scroll-shadow--left {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
}
.scroll-shadow--right {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.08), transparent);
}
.scroll-shadow.is-visible {
    opacity: 1;
}
.t-cat-item:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
}
.t-cat-item.is-active {
    border-color: #3bb77e;
    box-shadow: 0 4px 15px rgba(59,183,126,0.1);
}
.t-cat-img-wrap {
    width: 70px !important;
    height: 70px !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 12px auto 0 !important;
    border-radius: 10px !important;
    transition: background 0.22s ease, transform 0.22s ease;
}
.t-cat-item:hover .t-cat-img-wrap {
    background: transparent !important;
}
.t-cat-item.is-active .t-cat-img-wrap {
    background: transparent !important;
}
.t-cat-item:hover .t-cat-img-wrap img,
.t-cat-item:hover .t-cat-img-wrap .t-cat-emoji {
    transform: scale(1.08);
}
.t-cat-img-wrap img,
.t-cat-img-wrap .t-cat-emoji {
    transition: transform 0.22s ease;
}
.t-cat-img-wrap img {
    max-width: 65%;
    max-height: 65%;
    object-fit: contain;
}
.t-cat-img-wrap .t-cat-emoji {
    font-size: 32px;
    line-height: 1;
}
.t-cat-name {
    font-size: 12px !important;
    font-weight: 700;
    color: #253d4e;
    text-align: center;
    line-height: 1.2;
    margin-top: 8px !important;
    margin-bottom: 2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 8px;
}
.t-cat-count {
    font-size: 11px !important;
    color: #7b8a97;
    font-weight: 500;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}
/* More Card Styling Overrides */
.t-cat-item--more .t-cat-img-wrap svg {
    transition: transform 0.22s ease;
}
.t-cat-item--more:hover .t-cat-img-wrap svg {
    transform: scale(1.1);
}

/* Responsive height adjustments for category images */
@media (max-width: 680px) {
    .t-cat-img-wrap {
        height: 80px;
        padding: 0;
    }
    .t-cat-name {
        font-size: 12.5px;
        margin-top: 10px;
    }
    .t-cat-count {
        font-size: 11px;
        margin-bottom: 10px;
    }
}
@media (max-width: 480px) {
    .t-cat-img-wrap {
        height: 70px;
        padding: 0;
    }
    .t-cat-name {
        font-size: 11.5px;
        margin-top: 8px;
    }
    .t-cat-count {
        font-size: 10px;
        margin-bottom: 8px;
    }
}

/* Modal Category Grid Styling */
.modal-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 4px;
}
.modal-cat-grid::-webkit-scrollbar {
    width: 6px;
}
.modal-cat-grid::-webkit-scrollbar-track {
    background: transparent;
}
.modal-cat-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
.t-cat-item--less {
    justify-content: center;
}
.t-cat-item--less .t-cat-img-wrap {
    background: transparent !important;
    height: 96px;
}
.t-cat-item--less:hover .t-cat-img-wrap span {
    transform: translateY(-4px);
}
.t-cat-item--less .t-cat-img-wrap span {
    transition: transform 0.2s ease;
    display: inline-block;
}

/* Modal specific responsive overrides */
@media (max-width: 1200px) {
    .modal-cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 992px) {
    .modal-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .modal-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .t-cat-item--less .t-cat-img-wrap {
        height: 80px;
    }
}
@media (max-width: 480px) {
    .modal-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .t-cat-item--less .t-cat-img-wrap {
        height: 70px;
    }
}

/* ── Sidebar – List Your Shop card ── */
.t-sb-listshop {
    margin: 16px 0 0;
    background: #fff;
    border: 1.5px solid #dbeee2;
    border-radius: 10px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.t-sb-listshop::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(59,183,126,0.06) 0%, rgba(59,183,126,0.02) 100%);
    pointer-events: none;
}
.t-sb-listshop__icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: #e8f5e9; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.t-sb-listshop__title { font-size: 13px; font-weight: 800; color: #1a3c2e; margin-bottom: 4px; }
.t-sb-listshop__desc { font-size: 11px; color: #64748b; line-height: 1.5; margin-bottom: 12px; }
.t-sb-listshop__btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; background: #3bb77e; color: #fff;
    font-size: 12px; font-weight: 700;
    border: none; border-radius: 9px; padding: 9px 0;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.t-sb-listshop__btn:hover { background: #2a9a60; color: #fff; text-decoration: none; }
.t-sb-listshop__illus {
    position: absolute; right: -8px; bottom: -8px;
    font-size: 72px; opacity: 0.08; pointer-events: none;
    color: #3bb77e;
}

/* ── Sidebar – Need Help card ── */
.t-sb-help {
    margin: 12px 0 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}
.t-sb-help__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.t-sb-help__icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f0faf5;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.t-sb-help__title { font-size: 13px; font-weight: 800; color: #253d4e; }
.t-sb-help__desc { font-size: 11px; color: #64748b; margin-bottom: 8px; line-height: 1.5; }
.t-sb-help__link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; color: #3bb77e;
    text-decoration: none;
}
.t-sb-help__link:hover { color: #2a9a60; text-decoration: none; }

/* ── Sidebar Redesign (V2 Modern Sidebar Style Overrides) ── */
.sb-search-trigger {
    background: #3bb77e;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59,183,126,0.15);
}
.sb-search-trigger:hover {
    background: #2a9a60;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.sb-search-trigger .material-symbols-outlined {
    font-size: 24px;
    color: #fff;
}
.sb-search-trigger__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}
.sb-search-trigger__title {
    font-size: 13.5px;
    font-weight: 800;
}
.sb-search-trigger__sub {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.85);
}

.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--def-border-radius, 15px);
    color: #4f5d68;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}
.sb-nav-link:hover {
    background: #f4f6f8;
    color: #253d4e;
    text-decoration: none;
}
.sb-nav-link.active {
    background: #e8f5e9;
    color: #3bb77e;
    font-weight: 700;
}
.sb-nav-link .material-symbols-outlined {
    font-size: 20px;
}

.sb-search-box {
    position: relative;
    margin: 8px 0;
}
.sb-search-box input {
    width: 100%;
    background: #f4f6f8;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 36px 9px 16px;
    font-size: 12px;
    outline: none;
    color: #253d4e;
    transition: all 0.2s ease;
}
.sb-search-box input:focus {
    background: #fff;
    border-color: #3bb77e;
    box-shadow: 0 0 0 3px rgba(59,183,126,0.1);
}
.sb-search-box .material-symbols-outlined {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8a97;
    font-size: 18px;
    pointer-events: none;
}

.sb-section-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #010101ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 10px 4px;
}

.sb-cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: none;
    transition: max-height 0.3s ease;
}
.sb-cat-list.is-expanded {
    max-height: none;
}
.sb-cat-list::-webkit-scrollbar {
    display: none;
}
.sb-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    color: #4f5d68;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}
.sb-cat-item:hover {
    background: #f4f6f8;
    color: #253d4e;
    text-decoration: none;
}
.sb-cat-item.active {
    background: #e8f5e9;
    color: #3bb77e;
    font-weight: 700;
}
.sb-cat-item__left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb-cat-item__left .material-symbols-outlined {
    font-size: 18px;
}
.sb-cat-item__count {
    font-size: 10px;
    color: #7b8a97;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 999px;
}
.sb-cat-item.active .sb-cat-item__count {
    background: rgba(59,183,126,0.15);
    color: #3bb77e;
}

/* ── Right Rail (320px) and Widescreen Styles ── */
:root {
    --def-border-radius, 15px: 20px;
    --mega-deal-shadow: 0 10px 25px rgba(91, 33, 182, 0.8);
}
.t-right-rail {
    display: none;
    width: 380px;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
    padding-left: 12px;
}
@media (min-width: 1920px) {
    .t-right-rail {
        display: flex;
    }
}
.t-rail-card--mega {
    width: 380px;
    height: 220px;
    border-radius: var(--def-border-radius, 15px);
    box-shadow: var(--mega-deal-shadow);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 24px;
    background: linear-gradient(135deg, #5b21b6 0%, #ec4899 50%, #f97316 100%);
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
}
.t-rail-card--mega:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(91, 33, 182, 0.95);
}
.t-rail-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.t-rail-card__title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 4px;
    position: relative;
    z-index: 2;
}
.t-rail-card__desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}
.t-rail-card__btn {
    background: #fff;
    color: #3bb77e;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
    z-index: 2;
}
.t-rail-card__btn:hover {
    opacity: 0.9;
}
.t-rail-discount-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #f97316;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(12deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}
.t-rail-discount-badge span:first-child {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
}
.t-rail-discount-badge span:nth-child(2) {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}
.t-rail-discount-badge span:last-child {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
}
.t-rail-card__img {
    position: absolute;
    right: -10px;
    top: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}
.t-rail-card--exclusive {
    width: 380px;
    height: 180px;
    border-radius: var(--def-border-radius, 15px);
    box-shadow: 0 10px 25px rgba(59, 183, 126, 0.15);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 20px 24px;
    background: linear-gradient(135deg, #3bb77e 0%, #84cc16 100%);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
}
.t-rail-card--exclusive:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(59, 183, 126, 0.3);
}
.t-rail-card--exclusive__title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 2px;
    position: relative;
    z-index: 2;
}
.t-rail-card--exclusive__desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}
.t-rail-card--exclusive__form {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.t-rail-card--exclusive__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    color: #fff;
    outline: none;
}
.t-rail-card--exclusive__input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}
.t-rail-card--exclusive__btn {
    background: #fff;
    color: #3bb77e;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
}
.t-rail-card--exclusive__btn:hover {
    opacity: 0.9;
}
.t-rail-card--exclusive__illus {
    position: absolute;
    right: -10px;
    top: 10px;
    font-size: 72px;
    opacity: 0.2;
    color: #fff;
    pointer-events: none;
    z-index: 1;
}
.t-rail-service-card {
    width: 380px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--def-border-radius, 15px);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.t-rail-service-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.t-rail-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0faf5;
    border: 1px solid rgba(59, 183, 126, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3bb77e;
    flex-shrink: 0;
}
.t-rail-service-icon span {
    font-size: 20px;
}
.t-rail-service-title {
    font-size: 13px;
    font-weight: 800;
    color: #253d4e;
    margin-bottom: 2px;
}
.t-rail-service-desc {
    font-size: 11px;
    color: #7b8a97;
    margin: 0;
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 576px) {
    .t-section-title,
    .shops-showcase__title,
    .shops-showcase__title.tfs-3,
    #shopsShowcaseTitle {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
        max-width: 100%;
    }
    .t-banner-card__title.tfs-1 {
        font-size: 30px !important;
    }
}
@media (max-width: 375px) {
    .t-section-title,
    .shops-showcase__title,
    .shops-showcase__title.tfs-3,
    #shopsShowcaseTitle {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
        max-width: 100%;
    }
    .t-banner-card__title.tfs-1 {
        font-size: 25px !important;
    }

    .t-banner-card__overlay {
        width: 70% !important;
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0) 100%) !important;
    }
}
