/* Đúc Đồng Bảo Long - colours of the old Joomla template (ja_tiris + cinch menu) */
:root {
    --red: #da251c;
    --red-dark: #8f0d0d;
    --yellow: #fff507;
    --gold: #f7c588;
    --brown: #8d3b17;
    --bronze: #996e42;
    --grey: #ececec;
    --line: #e3d6c6;
    --text: #444;
}

body {
    background: #f4efe9;
    color: var(--text);
    font: 14px/1.6 Arial, Helvetica, sans-serif;
}

a { color: var(--brown); }
a:hover { color: var(--red); }

.site-wrap {
    max-width: 1270px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 18px rgba(0, 0, 0, .08);
}

/* header banner */
.site-header .banner img { display: block; width: 100%; height: auto; }

/* main menu: red bar, yellow text */
.main-nav {
    background: var(--red);
    padding: 0;
    border-top: 2px solid var(--red-dark);
    border-bottom: 3px solid var(--red-dark);
}
.main-nav .navbar-toggler { border-color: rgba(255, 255, 255, .5); margin: 6px 10px; }
.main-nav .navbar-toggler-icon { filter: invert(1); }
.main-nav .nav-hotline { color: var(--yellow); font-weight: bold; margin-right: 12px; text-decoration: none; }
.main-nav .nav-link {
    color: var(--yellow) !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    padding: 12px 16px !important;
    border-right: 1px solid rgba(255, 255, 255, .18);
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { background: var(--red-dark); }
.main-nav .dropdown-menu { border-radius: 0; border: 0; background: var(--red-dark); padding: 0; }
.main-nav .dropdown-item { color: var(--gold); font-size: 13px; padding: 8px 16px; }
.main-nav .dropdown-item:hover { background: var(--red); color: var(--yellow); }
.main-nav .search-form { padding: 6px 10px; }
.main-nav .search-form input { min-width: 200px; border-radius: 2px; }

/* home slider */
.home-slider { background: #000; }
.home-slider .carousel-item img { display: block; width: 100%; height: auto; max-height: 450px; object-fit: cover; }

/* body: left column + content */
.site-body { padding: 14px; }
.site-main { padding-left: 16px; }
.breadcrumb { font-size: 12px; background: #faf6f1; padding: 7px 12px; border: 1px solid var(--line); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }

.page-title {
    font-size: 20px;
    color: var(--red);
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid var(--red);
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.block-title {
    font-size: 16px;
    color: #fff;
    background: var(--red);
    display: inline-block;
    padding: 6px 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* left column */
.side-block { margin-bottom: 16px; border: 1px solid #ddd; }
.side-title {
    background: var(--red);
    color: var(--yellow);
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    padding: 9px 10px;
}
.side-menu, .side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu > li { position: relative; border-bottom: 1px solid #fff; background: var(--grey); }
.side-menu a {
    display: block;
    color: var(--brown);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 9px 30px 9px 10px;
}
.side-menu > li:hover > a,
.side-menu > li.active > a { background: var(--red-dark); color: var(--gold); }
.side-menu .sub-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 37px;
    border: 0;
    background: transparent;
    color: var(--brown);
}
.side-menu .sub-toggle::before { content: "▸"; }
.side-menu li.open > .sub-toggle::before { content: "▾"; }
.side-menu ul { display: none; background: #fff; }
.side-menu li.open > ul { display: block; }
.side-menu ul a { text-transform: none; font-weight: normal; padding: 7px 10px 7px 22px; font-size: 13px; border-top: 1px dotted #ddd; }
.side-menu ul li.active > a,
.side-menu ul a:hover { color: var(--red); background: #fdf3ea; }

@media (min-width: 992px) {
    /* flyout like the old cinch menu */
    .side-menu > li.has-sub:not(.open):hover > ul {
        display: block;
        position: absolute;
        left: 100%;
        top: 0;
        width: 220px;
        z-index: 20;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, .2);
        border: 1px solid #ddd;
    }
    .side-menu > li.has-sub:not(.open):hover > ul a { padding-left: 12px; }
}

.side-videos { display: grid; gap: 6px; padding: 6px; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-thumb::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 34px;
    margin: -17px 0 0 -24px;
    border-radius: 8px;
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.video-thumb:hover img { opacity: 1; }

.side-products { list-style: none; margin: 0; padding: 4px 8px; }
.side-products li + li { border-top: 1px dotted #ddd; }
.side-products a { display: flex; gap: 10px; align-items: center; padding: 7px 0; text-decoration: none; color: #333; font-size: 13px; }
.side-products .thumb { flex: 0 0 60px; height: 60px; background: #faf6f1; border: 1px solid #eee; }
.side-products .thumb img { width: 100%; height: 100%; object-fit: contain; }
.side-products a:hover .name { color: var(--red); }

/* product grid: same size frames, whole picture visible */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: 0 8px 22px rgba(143, 13, 13, .15); transform: translateY(-3px); border-color: var(--bronze); }
.pc-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #f6efe6 100%);
    overflow: hidden;
}
.pc-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .35s ease;
}
.product-card:hover .pc-image img { transform: scale(1.06); }
.pc-image .no-image { position: absolute; inset: 0; display: grid; place-items: center; color: #aaa; font-size: 12px; }
.pc-body { padding: 8px 10px 10px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.pc-name {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.35;
    margin: 0 0 4px;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-name a { color: #222; text-decoration: none; }
.pc-name a:hover { color: var(--red); }
.pc-size { font-size: 12px; color: #666; }
.pc-price { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: bold; color: var(--bronze); }
.pc-price a { color: var(--red); text-decoration: none; }

.sub-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sub-categories a {
    border: 1px solid var(--bronze);
    color: var(--brown);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
}
.sub-categories a:hover { background: var(--red); border-color: var(--red); color: var(--yellow); }

/* product page */
.pd-main {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #f6efe6 100%);
    overflow: hidden;
    cursor: zoom-in;
}
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pd-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
}
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.pd-thumbs button {
    aspect-ratio: 1 / 1;
    padding: 2px;
    border: 2px solid var(--line);
    border-radius: 3px;
    background: #faf6f1;
}
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--red); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-title { font-size: 22px; color: var(--red); text-transform: uppercase; font-weight: bold; margin-bottom: 12px; }
.pd-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.pd-info dt { font-weight: normal; color: #777; }
.pd-info dd { margin: 0; font-weight: bold; }
.pd-price { color: var(--red); font-size: 18px; }
.pd-short { margin: 12px 0; }
.btn-call { background: var(--red); color: var(--yellow); font-weight: bold; border: 0; padding: 10px 18px; }
.btn-call:hover { background: var(--red-dark); color: var(--yellow); }

/* texts */
.content-body img { max-width: 100%; height: auto; }
.content-body iframe { max-width: 100%; }
.video-embed { display: block; position: relative; aspect-ratio: 16 / 9; max-width: 640px; margin: 0 auto 12px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dotted #ccc; }
.ai-thumb { flex: 0 0 160px; }
.ai-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ai-title { font-size: 16px; font-weight: bold; }
.article-links { padding-left: 18px; }

/* pagination */
.pagination { justify-content: center; flex-wrap: wrap; }
.page-link { color: var(--brown); }
.page-item.active .page-link { background: var(--red); border-color: var(--red); color: var(--yellow); }

/* bottom: the three shops */
.site-bottom { background: #faf6f1; border-top: 3px solid var(--red); padding: 20px; }
.bottom-title { font-size: 15px; font-weight: bold; text-transform: uppercase; color: var(--red); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.bottom-body { font-size: 13px; }
.bottom-body p { margin-bottom: 3px; }
.bottom-body img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 6px; border-radius: 3px; }

.site-footer { background: var(--red); color: var(--yellow); padding: 14px 16px 8px; font-size: 13px; }
.site-footer p { margin-bottom: 4px; }
.site-footer a { color: #fff; }
.site-footer .copyright { text-align: center; font-size: 11px; color: var(--gold); margin-top: 6px; }

.to-top, .call-fab {
    position: fixed;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.to-top { bottom: 16px; background: var(--red-dark); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.call-fab { bottom: 70px; background: var(--red); color: var(--yellow); font-size: 20px; }
@media (min-width: 992px) { .call-fab { display: none; } }

@media (max-width: 991.98px) {
    .site-main { padding-left: 0; }
    .site-left { margin-top: 20px; }
    .main-nav .search-form input { min-width: 0; width: 100%; }
    .site-body { padding: 10px; }
}
