/* ============================================================
   TERIZ CUSTOM — Grinow additions on top of the Teriz theme.
   Keeps the original red accent (#ed1c24). Product/e-commerce
   pieces the original corporate template did not ship with.
   ============================================================ */

:root {
    --tr-red: #ed1c24;
    --tr-red-dark: #d0070f;
    --tr-dark: #323c47;
    --tr-muted: #989898;
}

/* --- Text logo fallback (when no logo image is set) --- */
.tr-brand-text {
    font-family: 'aller_bd', 'Aller', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--tr-dark);
    letter-spacing: -0.5px;
}
.tr-brand-text--white { color: #fff; }

/* --- Topbar language switcher --- */
.tr-topbar-lang a { margin: 0 2px; }
.tr-topbar-lang a.active { color: var(--tr-red); font-weight: 700; }

/* ============================================================
   PRODUCT CARD (used in "Our Works" portfolio + products page)
   ============================================================ */
.tr-product {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.tr-product:hover {
    box-shadow: 0 18px 40px rgba(50, 60, 71, .12);
    transform: translateY(-5px);
}
.tr-product__media {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    aspect-ratio: 1 / 1;
}
.tr-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.tr-product:hover .tr-product__media img { transform: scale(1.06); }
.tr-product__media-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0d7dd;
    font-size: 40px;
}
.tr-product__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.tr-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.4;
}
.tr-badge--sale { background: var(--tr-red); }
.tr-badge--new { background: var(--tr-dark); }
.tr-badge--featured { background: #f0a500; }

/* Quick actions overlay */
.tr-product__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(12px);
    transition: all .3s ease;
    z-index: 2;
}
.tr-product:hover .tr-product__actions { opacity: 1; transform: translateX(0); }
.tr-product__action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--tr-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transition: all .25s ease;
    font-size: 15px;
    text-decoration: none;
}
.tr-product__action:hover { background: var(--tr-red); color: #fff; }

.tr-product__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tr-product__brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--tr-muted);
    margin-bottom: 6px;
}
.tr-product__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    flex: 1;
}
.tr-product__title a {
    color: var(--tr-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tr-product__title a:hover { color: var(--tr-red); }
.tr-product__rating { margin-bottom: 10px; color: #f0a500; font-size: 12px; }
.tr-product__rating .empty { color: #d0d7dd; }
.tr-product__rating span { color: var(--tr-muted); margin-left: 4px; }
.tr-product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}
.tr-product__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tr-product__price-now { font-size: 20px; font-weight: 800; color: var(--tr-dark); }
.tr-product__price-old { font-size: 13px; color: var(--tr-muted); text-decoration: line-through; }
.tr-product__cart {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 4px;
    border: none;
    background: var(--tr-red);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.tr-product__cart:hover { background: var(--tr-red-dark); }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.tr-shop { padding: 60px 0 90px; }
.tr-shop__breadcrumb {
    font-size: 13px;
    color: var(--tr-muted);
    margin-bottom: 26px;
}
.tr-shop__breadcrumb a { color: var(--tr-muted); text-decoration: none; }
.tr-shop__breadcrumb a:hover { color: var(--tr-red); }
.tr-shop__breadcrumb .sep { margin: 0 8px; }

.tr-shop__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e9eff4;
}
.tr-shop__title { font-size: 30px; font-weight: 800; color: var(--tr-dark); margin: 0; }
.tr-shop__count { font-size: 14px; color: var(--tr-muted); margin: 6px 0 0; }
.tr-shop__sort select {
    border: 1px solid #d0d7dd;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--tr-dark);
    background: #fff;
    outline: none;
    cursor: pointer;
    min-width: 210px;
}

.tr-widget {
    background: #fff;
    border: 1px solid #e9eff4;
    border-radius: 4px;
    padding: 22px;
    margin-bottom: 24px;
}
.tr-widget__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tr-dark);
    margin: 0 0 18px;
    padding-bottom: 12px;
    position: relative;
    text-transform: capitalize;
}
.tr-widget__title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 34px;
    height: 2px;
    background: var(--tr-red);
}
.tr-widget__list { list-style: none; margin: 0; padding: 0; }
.tr-widget__list li { margin-bottom: 2px; }
.tr-widget__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #494949;
    text-decoration: none;
    transition: all .2s ease;
}
.tr-widget__link:hover { background: #f7f7f7; color: var(--tr-red); }
.tr-widget__link.active { background: rgba(237,28,36,.07); color: var(--tr-red); font-weight: 700; }
.tr-widget__link span { font-size: 12px; color: var(--tr-muted); }
.tr-widget__sub { padding-left: 14px; }
.tr-widget__sub .tr-widget__link { font-size: 13px; padding: 7px 12px; }

.tr-widget__field {
    width: 100%;
    border: 1px solid #d0d7dd;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}
.tr-widget__field:focus { border-color: var(--tr-red); }
.tr-widget__btn {
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: none;
    border-radius: 4px;
    background: var(--tr-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s ease;
}
.tr-widget__btn:hover { background: var(--tr-red); }
.tr-widget__check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    font-size: 14px;
    color: #494949;
    cursor: pointer;
}
.tr-widget__check input { width: 16px; height: 16px; accent-color: var(--tr-red); }

.tr-shop__empty { text-align: center; padding: 80px 20px; }
.tr-shop__empty-icon { font-size: 54px; color: #d0d7dd; margin-bottom: 18px; }
.tr-shop__empty h3 { font-size: 22px; font-weight: 700; color: var(--tr-dark); margin-bottom: 8px; }
.tr-shop__empty p { color: var(--tr-muted); margin-bottom: 22px; }

/* Pagination (Laravel default) tuned to red */
.tr-shop .pagination { justify-content: center; margin-top: 40px; gap: 6px; }
.tr-shop .page-link {
    color: var(--tr-dark);
    border: 1px solid #e9eff4;
    border-radius: 4px !important;
    margin: 0;
    padding: 9px 15px;
}
.tr-shop .page-item.active .page-link { background: var(--tr-red); border-color: var(--tr-red); color: #fff; }
.tr-shop .page-link:hover { background: #f7f7f7; color: var(--tr-red); }

/* --- Section intro tweaks reused on inner pages --- */
.tr-inner-hero {
    background: var(--tr-dark);
    background-size: cover;
    background-position: center;
    padding: 90px 0 70px;
    text-align: center;
    color: #fff;
    position: relative;
}
.tr-inner-hero::before { content: ""; position: absolute; inset: 0; background: rgba(50,60,71,.72); }
.tr-inner-hero .container { position: relative; z-index: 2; }
.tr-inner-hero h1 { font-size: 40px; font-weight: 800; margin: 0 0 10px; }
.tr-inner-hero p { opacity: .85; margin: 0; }

/* Chips (active filters) */
.tr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--tr-red);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 6px 6px 0;
}
.tr-chip--muted { background: #eef0f2; color: #494949; }

/* --- Alerts (contact / newsletter feedback) --- */
.tr-alert-success,
.tr-alert-error {
    max-width: 640px;
    margin: 0 auto 26px;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}
.tr-alert-success { background: rgba(40,167,69,.1); border: 1px solid rgba(40,167,69,.3); color: #1e7e34; }
.tr-alert-error { background: rgba(237,28,36,.08); border: 1px solid rgba(237,28,36,.3); color: var(--tr-red-dark); }
.tr-alert-error div { line-height: 1.7; }

/* --- Contact map placeholder (replaces gmap) --- */
.tr-contact-map {
    height: 380px;
    background-size: cover;
    background-position: center;
    background-color: #e9eff4;
}

/* --- Rating stars in product cards --- */
.tr-product__rating .fa-star { color: #f0a500; }
.tr-product__rating .fa-star.empty { color: #d0d7dd; }

/* --- Product card: excerpt + view link (content, non-commerce) --- */
.tr-product__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--tr-muted);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tr-product__view {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--tr-red);
    text-decoration: none;
    transition: gap .25s ease;
}
.tr-product__view:hover { gap: 12px; color: var(--tr-red-dark); }

/* --- Shop toolbar (count + sort) --- */
.tr-shop__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9eff4;
}
.tr-shop__toolbar .tr-shop__count { font-size: 14px; color: var(--tr-muted); }
.tr-shop__sort { display: flex; align-items: center; gap: 8px; }
.tr-shop__sort label { font-size: 13px; color: var(--tr-dark); margin: 0; font-weight: 600; }
.tr-shop__sort select {
    border: 1px solid #d0d7dd;
    border-radius: 4px;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--tr-dark);
    background: #fff;
    outline: none;
    cursor: pointer;
    min-width: 180px;
}

/* --- Widget search button --- */
.tr-widget__search-btn {
    flex-shrink: 0;
    width: 46px;
    border: none;
    border-radius: 4px;
    background: var(--tr-red);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}
.tr-widget__search-btn:hover { background: var(--tr-red-dark); }

/* --- Product detail: rich text + lead --- */
.tr-lead { font-size: 16px; line-height: 1.8; color: #494949; font-weight: 500; margin-bottom: 18px; }
.tr-richtext { font-size: 15px; line-height: 1.9; color: #555; }
.tr-richtext h1, .tr-richtext h2, .tr-richtext h3, .tr-richtext h4 { color: var(--tr-dark); font-weight: 700; margin: 24px 0 12px; }
.tr-richtext p { margin-bottom: 16px; }
.tr-richtext img { max-width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }
.tr-richtext ul, .tr-richtext ol { margin: 0 0 16px 22px; }
.tr-richtext li { margin-bottom: 6px; }
.tr-richtext blockquote {
    border-left: 3px solid var(--tr-red);
    padding: 6px 20px;
    margin: 20px 0;
    color: var(--tr-dark);
    font-style: italic;
    background: #f7f7f7;
}
.tr-richtext a { color: var(--tr-red); }

/* --- Spec list (product attributes) --- */
.tr-spec-list { list-style: none; margin: 0; padding: 0; }
.tr-spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f2;
    font-size: 13px;
}
.tr-spec-list li:last-child { border-bottom: 0; }
.tr-spec-label { color: var(--tr-muted); font-weight: 600; }
.tr-spec-value { color: var(--tr-dark); text-align: right; }

/* --- Related products (sidebar) --- */
.tr-related { list-style: none; margin: 0; padding: 0; }
.tr-related__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef0f2; }
.tr-related__item:last-child { border-bottom: 0; }
.tr-related__thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: #f7f7f7; display: block; }
.tr-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-related__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #d0d7dd; }
.tr-related__info { display: flex; flex-direction: column; justify-content: center; }
.tr-related__info a { color: var(--tr-dark); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.tr-related__info a:hover { color: var(--tr-red); }
.tr-related__info span { font-size: 11px; color: var(--tr-muted); margin-top: 3px; }

/* --- Blog: read more + related posts --- */
.tr-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--tr-red);
    text-decoration: none;
    transition: gap .25s ease;
}
.tr-readmore:hover { gap: 13px; color: var(--tr-red-dark); }

.tr-related-posts { margin-top: 34px; }
.tr-related-posts__title { font-size: 20px; font-weight: 800; color: var(--tr-dark); margin-bottom: 20px; }
.tr-related-card { border: 1px solid #e9eff4; border-radius: 4px; overflow: hidden; margin-bottom: 24px; transition: box-shadow .3s ease; }
.tr-related-card:hover { box-shadow: 0 12px 30px rgba(50,60,71,.1); }
.tr-related-card__thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #f7f7f7; }
.tr-related-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-related-card__body { padding: 14px 16px; }
.tr-related-card__body a { color: var(--tr-dark); font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.4; }
.tr-related-card__body a:hover { color: var(--tr-red); }

/* --- Static page --- */
.tr-static-page { padding: 34px 40px; border-radius: 4px; }
.tr-static-page__hero { margin-bottom: 26px; border-radius: 4px; overflow: hidden; }
.tr-static-page__hero img { width: 100%; display: block; }

/* --- Auth pages --- */
.tr-auth { display: flex; justify-content: center; padding: 10px 0 20px; }
.tr-auth__card { width: 100%; max-width: 520px; padding: 40px; border-radius: 4px; border: 1px solid #e9eff4; }
.tr-auth__title { font-size: 24px; font-weight: 800; color: var(--tr-dark); text-align: center; margin-bottom: 26px; }
.tr-auth__form .form-group { margin-bottom: 18px; }
.tr-auth__form label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 7px; }
.tr-auth__form .form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d0d7dd;
    border-radius: 4px;
    font-size: 14px;
    color: var(--tr-dark);
    outline: none;
    transition: border-color .2s ease;
}
.tr-auth__form textarea.form-control { height: auto; padding: 12px 16px; }
.tr-auth__form .form-control:focus { border-color: var(--tr-red); }
.tr-auth__remember { margin-bottom: 22px; }
.tr-auth__remember label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; cursor: pointer; }
.tr-auth__remember input { width: 16px; height: 16px; accent-color: var(--tr-red); }
.tr-auth__submit { width: 100%; border: none; cursor: pointer; }
.tr-auth__alt { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--tr-muted); }
.tr-auth__alt a { color: var(--tr-red); font-weight: 700; text-decoration: none; }

/* --- Topbar current user label --- */
.tr-topbar-user { margin-right: 4px; opacity: .85; }

/* --- Category cards (services-card design, clickable) --- */
.tr-service.tr-service-cat {
    display: block;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
}
.tr-service-cat__img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 22px;
    border: 3px solid #eef0f2;
    background: #f7f7f7;
    transition: border-color .3s ease, transform .3s ease;
}
.tr-service-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.tr-service-cat:hover .tr-service-cat__img { border-color: var(--tr-red); transform: translateY(-4px); }
.tr-service-cat h2 { transition: color .25s ease; }
.tr-service-cat:hover h2 { color: var(--tr-red); }
.tr-service-cat p { color: var(--tr-muted); }

/* Responsive */
@media (max-width: 767px) {
    .tr-shop__title { font-size: 24px; }
    .tr-product__body { padding: 16px; }
    .tr-contact-map { height: 240px; }
    .tr-auth__card { padding: 28px 20px; }
    .tr-static-page { padding: 22px 18px; }
}
