/* =====================================================================
   Showroom V2 — chỉ nạp trên trang dùng template "Showroom V2".
   Header / footer giữ nguyên của Flatsome.
   ===================================================================== */

.tgdt-sr {
    --sr-green-dark: #154a2c;
    --sr-green: #1f6b3a;
    --sr-lime: #8dc73d;
    --sr-red: #d0112b;
    --sr-ink: #1f2a1f;
    --sr-muted: #5f665f;
    --sr-line: #e3e6e1;
    --sr-band: #f3f4f1;
    --sr-ph: #dfe3dc;
    color: var(--sr-ink);
}

.tgdt-sr p {
    margin: 0;
}

/* --- Chung --------------------------------------------------------- */
.tgdt-sr__section {
    padding-top: 40px;
    padding-bottom: 8px;
}

.tgdt-sr__section--tight {
    padding-top: 24px;
    padding-bottom: 40px;
}

.tgdt-sr__kicker {
    margin-bottom: 6px !important;
    color: var(--sr-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tgdt-sr__title {
    margin: 0 0 6px;
    color: var(--sr-green-dark);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.tgdt-sr__sub {
    max-width: 680px;
    margin-bottom: 24px !important;
    color: var(--sr-muted);
    font-size: 14px;
    line-height: 1.55;
}

.tgdt-sr__btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.tgdt-sr__btn--ghost {
    color: var(--sr-green-dark);
}

.tgdt-sr__btn--ghost:hover {
    background: var(--sr-green-dark);
    border-color: var(--sr-green-dark);
    color: #fff;
}

.tgdt-sr__btn--ghost-light {
    color: #fff;
}

.tgdt-sr__btn--ghost-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--sr-green-dark);
}

.tgdt-sr__link {
    color: var(--sr-green-dark);
    font-size: 13px;
    font-weight: 700;
}

/* --- Hero ---------------------------------------------------------- */
.tgdt-sr__hero {
    background: var(--sr-green-dark);
    color: #fff;
}

.tgdt-sr__hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.tgdt-sr__hero-text {
    flex: 1 1 52%;
    min-width: 0;
}

.tgdt-sr__hero .tgdt-sr__kicker {
    color: var(--sr-lime);
}

.tgdt-sr__hero-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
}

.tgdt-sr__hero-desc {
    max-width: 520px;
    margin-bottom: 24px !important;
    font-size: 15px;
    line-height: 1.55;
    opacity: .85;
}

.tgdt-sr__hero-media {
    flex: 1 1 48%;
    min-width: 0;
    position: relative;
    aspect-ratio: 16 / 10; /* chuẩn ảnh đầu trang + thẻ showroom: 16:10 (= ảnh showroom 634×400 của ICADO) */
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.tgdt-sr__hero-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider [ux_slider] của Flatsome: khung không tự giữ tỉ lệ nữa, từng slide giữ
   16:10 và ảnh phủ kín (ảnh dọc / vuông cũng không làm slider cao lên). */
.tgdt-sr__hero-media--slider {
    aspect-ratio: auto;
}

.tgdt-sr__hero-media--slider .slider-wrapper,
.tgdt-sr__hero-media--slider .slider {
    margin: 0;
}

.tgdt-sr__hero-media--slider .img,
.tgdt-sr__hero-media--slider .img-inner {
    width: 100%;
    margin: 0;
}

.tgdt-sr__hero-media--slider .img-inner {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tgdt-sr__hero-media--slider .img-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Trước khi JS slider chạy (bị delay-js hoãn tới lần tương tác đầu): chỉ hiện slide đầu. */
.tgdt-sr__hero-media--slider .slider:not(.flickity-enabled) > :not(:first-child) {
    display: none;
}

/* --- Nền xám (showroom + danh mục + banner sale) ------------------- */
.tgdt-sr__band {
    background: var(--sr-band);
}

/* --- Showroom ------------------------------------------------------ */
/* Flex canh giữa: thiếu thẻ (VD 2 showroom) thì nằm giữa hàng, không dồn trái. */
.tgdt-sr__shops {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tgdt-sr__shops > .tgdt-sr__shop {
    flex: 0 0 calc((100% - 40px) / 3); /* 3 thẻ / hàng */
    min-width: 0;
}

.tgdt-sr__shop {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.tgdt-sr__shop-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sr-ph);
}

.tgdt-sr__shop-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgdt-sr__shop-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.tgdt-sr__shop-no {
    margin-bottom: 4px !important;
    color: var(--sr-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tgdt-sr__shop-name {
    margin: 0 0 8px;
    color: var(--sr-green-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.tgdt-sr__shop-addr {
    margin-bottom: 4px !important;
    font-size: 13px;
    line-height: 1.5;
}

.tgdt-sr__shop-meta {
    color: var(--sr-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tgdt-sr__shop-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: auto;
    padding-top: 16px;
}

/* --- Danh mục mua ngay --------------------------------------------- */
.tgdt-sr__cats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tgdt-sr__cat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    color: var(--sr-ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: transform .15s, box-shadow .15s;
}

.tgdt-sr__cat:hover {
    color: var(--sr-ink);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.tgdt-sr__cat-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* = ảnh sản phẩm của site (1000×1250) */
    background: var(--sr-ph);
}

.tgdt-sr__cat-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgdt-sr__cat-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px 12px 12px;
}

.tgdt-sr__cat-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.tgdt-sr__cat-count {
    margin-top: 2px;
    color: var(--sr-muted);
    font-size: 12px;
}

.tgdt-sr__cat-more {
    margin-top: auto;
    padding-top: 8px;
    color: var(--sr-green-dark);
    font-size: 12px;
    font-weight: 700;
}

/* --- Banner sale --------------------------------------------------- */
.tgdt-sr__sale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 10px;
    background: var(--sr-red);
    color: #fff;
}

.tgdt-sr__sale-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.tgdt-sr__sale-sub {
    margin-top: 2px !important;
    font-size: 12px;
    opacity: .85;
    text-transform: uppercase;
}

.tgdt-sr__sale-btn {
    flex: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tgdt-sr__sale-btn:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Đại lý -------------------------------------------------------- */
.tgdt-sr__regions {
    columns: 4 220px;
    column-gap: 28px;
}

.tgdt-sr__region {
    break-inside: avoid;
    margin-bottom: 24px;
}

.tgdt-sr__region-title {
    margin: 0 0 8px;
    color: var(--sr-green-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.tgdt-sr__region-title span {
    color: var(--sr-muted);
    font-weight: 400;
}

.tgdt-sr__dealers {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tgdt-sr__dealers li {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.45;
}

.tgdt-sr__dealers a {
    color: var(--sr-ink);
}

.tgdt-sr__dealers a:hover {
    color: var(--sr-green);
    text-decoration: underline;
}

/* --- CTA đăng ký đại lý -------------------------------------------- */
.tgdt-sr__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 48px;
    padding: 20px 24px;
    border-radius: 10px;
    background: var(--sr-green-dark);
    color: #fff;
}

.tgdt-sr__cta-title {
    font-size: 19px;
    font-weight: 700;
}

.tgdt-sr__cta-text {
    margin-top: 4px !important;
    font-size: 13px;
    opacity: .85;
}

/* --- Tablet -------------------------------------------------------- */
@media (max-width: 849px) {
    .tgdt-sr__hero-inner { flex-direction: column; align-items: stretch; gap: 24px; }
    .tgdt-sr__hero-title { font-size: 30px; }
    .tgdt-sr__shops > .tgdt-sr__shop { flex-basis: calc((100% - 20px) / 2); }
    .tgdt-sr__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Mobile -------------------------------------------------------- */
@media (max-width: 549px) {
    .tgdt-sr__section { padding-top: 28px; }
    .tgdt-sr__hero-inner { padding-top: 28px; padding-bottom: 28px; }
    .tgdt-sr__hero-title { font-size: 25px; }
    .tgdt-sr__title { font-size: 22px; }
    .tgdt-sr__shops > .tgdt-sr__shop { flex-basis: 100%; }
    .tgdt-sr__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tgdt-sr__sale,
    .tgdt-sr__cta { flex-direction: column; align-items: stretch; text-align: center; }
    .tgdt-sr__cta .tgdt-sr__btn { text-align: center; }
}
