/* Shop discovery + smart facets v3.19.64 */
.tt-shop {
    --tt-discovery-border: #e5eaf2;
    --tt-discovery-text: #172033;
    --tt-discovery-muted: #6b7588;
    --tt-discovery-soft: #f8fafc;
    --tt-discovery-red: var(--tt-primary, #dc2626);
}

/* Compact archive hero: less empty space, clearer shopping intent. */
.tt-shop .tt-shop-hero,
.tt-shop .tt-shop-hero.has-image {
    min-height: 138px;
    padding: 22px 26px;
    border-color: var(--tt-discovery-border);
    background:
        radial-gradient(circle at 88% 22%, rgba(239,68,68,.08), transparent 26%),
        linear-gradient(135deg, #fff 0%, #fff 62%, #fff8f8 100%);
    box-shadow: 0 12px 32px rgba(15,23,42,.045);
}
.tt-shop .tt-shop-hero.has-image { grid-template-columns: minmax(0, 1fr) 150px; }
.tt-shop .tt-shop-hero__image { width: 132px; height: 112px; justify-self: end; border-radius: 16px; background: #fff; border: 1px solid #eef1f5; }
.tt-shop .tt-shop-hero__image img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.tt-shop .tt-shop-hero h1 { margin: 7px 0 8px !important; font-size: clamp(24px, 2vw, 34px) !important; letter-spacing: -.025em; }
.tt-shop .tt-shop-hero__meta span { color: #697386; }

/* Category discovery: compact premium tiles instead of a large raw taxonomy wall. */
.tt-shop-category-shell {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid var(--tt-discovery-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15,23,42,.035);
}
.tt-shop-category-shell__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
.tt-shop-category-shell__head strong { display: block; color: var(--tt-discovery-text); font-size: 15px; font-weight: 800; }
.tt-shop-category-shell__head span { display: block; margin-top: 2px; color: var(--tt-discovery-muted); font-size: 12.5px; }
.tt-shop .tt-shop-category-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
}
.tt-shop .tt-shop-category {
    min-width: 0;
    min-height: 62px;
    padding: 8px 10px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tt-shop .tt-shop-category:hover,
.tt-shop .tt-shop-category.is-active {
    transform: translateY(-2px);
    border-color: rgba(220,38,38,.32);
    background: linear-gradient(180deg, #fff, #fff8f8);
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
.tt-shop .tt-shop-category__media { width: 42px; height: 42px; padding: 3px; border-radius: 11px; background: #fff; border: 1px solid #eef1f5; }
.tt-shop .tt-shop-category__body { padding-left: 0; }
.tt-shop .tt-shop-category__body strong { max-width: none; color: #172033; font-size: 13.5px; font-weight: 750; line-height: 1.25; }

/* Smart filter panel */
.tt-shop-discovery {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--tt-discovery-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15,23,42,.045);
}
.tt-shop-discovery__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.tt-shop-discovery__title { min-width: 0; }
.tt-shop-discovery__eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--tt-discovery-red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tt-shop-discovery__eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 99px; background: var(--tt-discovery-red); }
.tt-shop-discovery__title h2 { margin: 3px 0 0 !important; color: var(--tt-discovery-text); font-size: 18px !important; line-height: 1.25; font-weight: 800; }
.tt-shop-discovery__reset { flex: 0 0 auto; color: #6b7588 !important; font-size: 13px; font-weight: 650; text-decoration: none !important; }
.tt-shop-discovery__reset:hover { color: var(--tt-discovery-red) !important; }

.tt-shop-smart-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 9px;
    align-items: end;
}
.tt-shop-smart-filter__field { display: grid; gap: 5px; min-width: 0; margin: 0; }
.tt-shop-smart-filter__field > span { color: #667085; font-size: 11.5px; font-weight: 750; }
.tt-shop-smart-filter select,
.tt-shop-smart-filter input[type="search"] {
    width: 100%;
    height: 42px;
    margin: 0 !important;
    padding: 0 34px 0 12px;
    border: 1px solid #dfe5ed !important;
    border-radius: 11px !important;
    background-color: #fff !important;
    color: #172033 !important;
    font-size: 13.5px !important;
    box-shadow: none !important;
}
.tt-shop-smart-filter input[type="search"] { padding-right: 12px; }
.tt-shop-smart-filter select:focus,
.tt-shop-smart-filter input[type="search"]:focus {
    border-color: rgba(220,38,38,.55) !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08) !important;
    outline: 0;
}
.tt-shop-smart-filter__submit {
    min-height: 42px;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #ef3b3b, #d91f26) !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(220,38,38,.18) !important;
}
.tt-shop-smart-filter__submit:hover { filter: brightness(.97); transform: translateY(-1px); }

.tt-shop-active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tt-shop-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 9px 5px 10px;
    border: 1px solid #f1c9ca;
    border-radius: 999px;
    background: #fff7f7;
    color: #9f1d22 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}
.tt-shop-active-filter b { font-size: 15px; line-height: 1; }

/* Existing left filter becomes clearly secondary / advanced. */
.tt-shop .tt-shop-filter {
    border-radius: 16px;
    border-color: var(--tt-discovery-border);
    box-shadow: 0 8px 24px rgba(15,23,42,.035);
}
.tt-shop .tt-shop-filter__group { padding-bottom: 13px; border-bottom: 1px solid #eef1f5; }
.tt-shop .tt-shop-filter__group:last-of-type { border-bottom: 0; }
.tt-shop .tt-shop-filter__title { color: #2c3546; font-weight: 800; }

@media (max-width: 1199px) {
    .tt-shop .tt-shop-category-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tt-shop-smart-filter { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}

@media (max-width: 849px) {
    .tt-shop .tt-shop-hero,
    .tt-shop .tt-shop-hero.has-image { min-height: 0; padding: 15px; }
    .tt-shop .tt-shop-hero h1 { font-size: 20px !important; }
    .tt-shop-category-shell { display: none !important; }

    .tt-shop-discovery { margin-bottom: 11px; padding: 12px; border-radius: 15px; }
    .tt-shop-discovery__head { margin-bottom: 9px; }
    .tt-shop-discovery__title h2 { font-size: 16px !important; }
    .tt-shop-discovery__reset { font-size: 12px; }
    .tt-shop-smart-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tt-shop-smart-filter__field--search { grid-column: 1 / -1; }
    .tt-shop-smart-filter__submit { grid-column: 1 / -1; }
    .tt-shop-smart-filter select,
    .tt-shop-smart-filter input[type="search"] { height: 40px; font-size: 13px !important; }
    .tt-shop-smart-filter__field > span { font-size: 11px; }
}

@media (max-width: 520px) {
    .tt-shop-smart-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tt-shop-smart-filter__field--attr:nth-of-type(n+7) { display: none; }
}
