:root {
    --primary: #0259fa;
    --hov-primary: #0146c7;
    --soft-primary: rgba(2, 89, 250, 0.12);
    --tg-line: #eeeeee;
    --tg-text: rgba(0, 0, 0, 0.87);
    --tg-muted: rgba(0, 0, 0, 0.6);
}

body,
.aiz-main-wrapper {
    background: #fff;
    color: var(--tg-text);
    font-family: Roboto, "Open Sans", sans-serif;
}

.top-navbar {
    border-bottom: 0 !important;
}

.top-navbar .opacity-60,
.top-navbar a {
    color: var(--tg-text) !important;
    opacity: 1 !important;
    font-size: 14px;
    font-weight: 500;
}

.tg-open-shop {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 4px;
    background: #ff7a00;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
}

.tg-open-shop:hover {
    background: #e86e00;
    color: #fff !important;
}

header.z-1020 {
    box-shadow: none !important;
    border-bottom: 1px solid var(--tg-line) !important;
}

.logo-bar-area {
    padding-top: 8px;
    padding-bottom: 8px;
}

.front-header-search .form-control {
    height: 42px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #fff;
    font-size: 14px;
}

.front-header-search .input-group {
    align-items: center;
    flex-wrap: nowrap;
}

.tg-search-btn {
    height: 42px;
    min-width: 72px;
    margin-left: 8px;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 4px !important;
    background: #0259fa !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none !important;
}

.tg-search-btn:hover {
    background: #0146c7 !important;
}

header .list-inline a:not(.btn) {
    color: var(--tg-text);
    font-weight: 500;
    opacity: 1 !important;
}

.nav-box-text {
    font-size: 12px;
}

.tg-home {
    padding-bottom: 8px;
}

.tg-hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.tg-hero-main,
.tg-hero-side a {
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: #f5f5f5;
}

.tg-hero-main {
    min-height: 320px;
}

.tg-hero-main img,
.tg-hero-side img {
    width: 100%;
    object-fit: contain;
    background: #f6f6f6;
    display: block;
}

.tg-hero-main img {
    height: 420px;
}

.tg-hero-side {
    display: grid;
    gap: 12px;
}

.tg-hero-side img {
    height: 204px;
}

.tg-notice {
    margin: 8px 0 28px;
    padding: 22px 28px;
    border-radius: 4px;
    background: #111;
    color: #fff;
}

.tg-notice p {
    margin: 0;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.7;
}

.tg-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 8px 0 16px;
}

.tg-block-head h2,
.tg-section-title {
    margin: 0;
    color: #222;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.tg-block-head a,
.tg-more {
    color: #0259fa;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.tg-cat-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.tg-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 168px;
    padding: 16px 8px 12px;
    border: 1px solid #ededed;
    border-radius: 8px;
    background: #fff;
    color: var(--tg-text);
    text-align: center;
    text-decoration: none !important;
}

.tg-cat-card:hover {
    border-color: #d6d6d6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tg-cat-card img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.tg-cat-card span {
    display: block;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-section {
    margin-bottom: 28px;
}

.tg-section .bg-white.shadow-sm,
.tg-plain {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tg-product-row {
    margin-top: 4px;
}

.tg-card {
    height: 100%;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.tg-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tg-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    padding: 12px;
    background: #fff;
}

.tg-card-media img {
    max-width: 100%;
    max-height: 186px;
    object-fit: contain;
}

.tg-card-body {
    padding: 4px 12px 14px;
    text-align: center;
}

.tg-card-name {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: var(--tg-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tg-card-rating {
    margin: 6px 0;
}

.tg-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tg-text);
    font-size: 14px;
    cursor: pointer;
}

.tg-buy:hover {
    color: #0259fa;
}

.tg-price {
    color: var(--tg-text);
    font-size: 16px;
    font-weight: 500;
}

.tg-price del {
    margin-right: 6px;
    color: var(--tg-muted);
    font-size: 13px;
    font-weight: 400;
}

.tg-off {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    border-radius: 2px;
    background: #0259fa;
    color: #fff;
    font-size: 11px;
}

.footer-widget {
    background: #111 !important;
}

.footer-widget h4,
.footer-widget .text-uppercase {
    color: #0259fa !important;
    border-color: transparent !important;
    text-transform: none !important;
    font-size: 16px !important;
}

.footer-widget .btn-primary {
    border-radius: 4px !important;
    background: #0259fa !important;
}

@media (max-width: 1199px) {
    .tg-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .tg-hero {
        grid-template-columns: 1fr;
    }

    .tg-hero-main {
        min-height: 0;
    }

    .tg-hero-main img,
    .tg-hero-side img {
        height: 180px;
        max-height: none;
    }

    .tg-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tg-page {
    padding-top: 28px;
    padding-bottom: 40px;
}

.tg-page-title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 500;
}

.tg-all-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tg-all-cat {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 180px;
    padding: 20px;
    border: 1px solid #ededed;
    border-radius: 8px;
    color: inherit;
    text-decoration: none !important;
}

.tg-all-cat img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.tg-all-cat h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.tg-all-cat p {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.gry-bg,
.aiz-main-wrapper {
    background: #fff;
}

.card,
.aiz-user-panel,
.aiz-user-sidenav {
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: none;
}

.btn-primary,
.btn-soft-primary {
    border-radius: 4px;
    box-shadow: none !important;
}

.form-control {
    min-height: 42px;
    border-color: #e0e0e0;
    border-radius: 4px;
}

.breadcrumb {
    background: transparent;
}

.aiz-filter-sidebar .bg-white.shadow-sm,
.shadow-sm.bg-white,
.bg-white.shadow-sm.rounded {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: none !important;
}

.aiz-pagination .page-item.active .page-link,
.aiz-pagination .page-link:hover {
    background: #0259fa;
    border-color: #0259fa;
    color: #fff;
}

.tg-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.tg-auth::before {
    content: "";
    min-height: 460px;
    background: #f4f4f4 var(--tg-auth-image) center / cover no-repeat;
}

.tg-auth-body {
    padding-bottom: 8px;
}

.tg-detail .bg-white.shadow-sm {
    border: 1px solid #eee;
    box-shadow: none !important;
}

.tg-detail .add-to-cart,
.tg-detail .buy-now {
    height: 48px;
    border-radius: 4px;
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

.tg-detail .h2.text-primary,
.tg-detail #chosen_price {
    color: #0259fa !important;
    font-size: 28px;
    font-weight: 600;
}

.tg-detail .btn-link {
    color: #0259fa;
}

.aiz-user-sidenav .bg-primary {
    background: #111 !important;
}

.aiz-steps .active,
.aiz-steps .text-primary {
    color: #0259fa !important;
}

@media (max-width: 575px) {
    .tg-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-all-cats {
        grid-template-columns: 1fr;
    }

    .tg-block-head h2,
    .tg-section-title,
    .tg-page-title {
        font-size: 20px;
    }

    .tg-auth {
        grid-template-columns: 1fr;
    }

    .tg-auth::before {
        display: none;
    }
}

/* ===== Header / navigation (Target-style) ===== */
@media (min-width: 1200px) {
    .container { max-width: 1170px; }
}
.tg-head { position: relative; background: #fff; }
.tg-head header { box-shadow: none !important; border-bottom: 0 !important; }
.tg-head .top-navbar {
    position: absolute; top: 0; left: 0; right: 0; height: 66px;
    background: transparent !important; border: 0 !important; z-index: 3; pointer-events: none;
}
.tg-head .top-navbar .container,
.tg-head .top-navbar .row { height: 100%; }
.tg-head .top-navbar .row { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; margin: 0; }
.tg-head .top-navbar [class*="col"] { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
.tg-head .top-navbar ul,
.tg-head .top-navbar a { pointer-events: auto; }
.tg-head .top-navbar .list-inline { display: flex !important; align-items: center; margin: 0; }
.tg-head .top-navbar .tg-open-shop,
.tg-head .top-navbar li:has(> .tg-open-shop) { display: none !important; }
.tg-head .top-navbar .list-inline-item { margin-right: 14px !important; border: 0 !important; padding: 0 !important; }
.tg-head .top-navbar a { font-size: 14px; font-weight: 500; letter-spacing: .2px; }
.tg-head .logo-bar-area { height: 66px; padding: 0; }
.tg-head .logo-bar-area > .container > .d-flex { height: 66px; position: relative; justify-content: center; }
.tg-head .logo-bar-area .col-xl-3 { position: absolute; left: 0; top: 0; bottom: 0; padding: 0 !important; width: auto; }
.tg-head .logo-bar-area .col-xl-3 a { padding: 0 !important; margin: 0 !important; }
.tg-head .logo-bar-area .col-xl-3 img { height: 34px; width: auto; }
.tg-head .front-header-search { flex: 0 1 448px; margin: 0 auto; }
.tg-head .tg-compare,
.tg-head .tg-wishlist { display: none !important; }
.tg-head .tg-cart {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 1040;
    margin: 0 !important; padding: 8px 12px; border-radius: 8px 0 0 8px;
    background: #0259fa; color: #fff; display: block !important; box-shadow: 0 4px 14px rgba(2,89,250,.25);
}
/* 仅作用于蓝色悬浮按钮本身（触发器 a 及其内部），不能漏进下拉菜单，否则下拉内文字变白看不见 */
.tg-head .tg-cart .nav-cart-box > a,
.tg-head .tg-cart .nav-cart-box > a span,
.tg-head .tg-cart .nav-cart-box > a i { color: #fff !important; }
.tg-head .tg-cart .dropdown-menu { color: #212529; cursor: default; z-index: 1050; }
.tg-orange-bar {
    display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 14px;
    background: #ff9d52; color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none !important;
}
.tg-orange-bar-icon { font-size: 18px; line-height: 1; }
.tg-head header > div.bg-white.border-top { border-top: 0 !important; }
.tg-head header > div.bg-white.border-top .container { border-bottom: 1px solid #eee; }
.tg-head header > div.bg-white.border-top a { opacity: 1 !important; color: #222 !important; font-size: 12px; font-weight: 700; padding: 14px 15px !important; }

/* hero mosaic: main + (tall, small, small) */
.tg-hero { grid-template-columns: 1.03fr 1fr; height: 244px; }
.tg-hero-main { min-height: 0; }
.tg-hero-main img, .tg-hero-side img { height: 100%; object-fit: cover; }
.tg-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tg-hero-side a { min-height: 0; }
.tg-hero-side a:first-child:nth-last-child(3) { grid-row: 1 / 3; }
.tg-hero-side a:first-child:nth-last-child(2) { grid-column: 1 / 3; }

/* light footer */
.footer-widget { background: #fff !important; color: #000; border-top: 1px dotted #aaa; }
.footer-widget h4, .footer-widget .text-uppercase { color: #000 !important; font-weight: 700 !important; }
.footer-widget a, .footer-widget .text-soft-light, .footer-widget p { color: #222 !important; }

@media (max-width: 991px) {
    .tg-head .top-navbar { height: 56px; }
    .tg-head .top-navbar .col-5 { display: none !important; }
    .tg-head .logo-bar-area, .tg-head .logo-bar-area > .container > .d-flex { height: 56px; }
    .tg-head .logo-bar-area .d-lg-none.ml-auto { margin-right: 52px !important; }
    .tg-head .logo-bar-area .d-lg-none.ml-auto a { width: 40px; height: 40px; display: flex !important; align-items: center; justify-content: center; border: 1px solid #eee; border-radius: 50%; padding: 0 !important; }
    .tg-head .logo-bar-area .col-xl-3 { position: static; }
    .tg-head header > div.bg-white.border-top { display: none; }
    .tg-hero { height: auto; grid-template-columns: 1fr; }
    .tg-hero-main img { height: 210px; }
    .tg-hero-side { height: 190px; }
    .tg-hero-side img { height: 100%; }
    .tg-head .tg-cart { display: none !important; }
    body { padding-bottom: 64px; }
}

.tg-head .front-header-search.flex-grow-1 { flex-grow: 0 !important; flex-basis: 448px; width: 448px; max-width: 100%; }
@media (max-width: 991px) {
    .tg-head .front-header-search.flex-grow-1 { width: auto; flex-basis: auto; }
}

@media (max-width: 991px) {
    .tg-head .logo-bar-area .col-xl-3 img { height: 26px; max-width: 150px; }
    .tg-head .top-navbar .container { display: flex; justify-content: flex-end; align-items: center; }
    .tg-head .top-navbar .row { width: auto; }
    .tg-head .top-navbar .list-inline { flex-wrap: nowrap; }
    .tg-head .top-navbar .list-inline-item { margin-right: 0 !important; }
    .tg-head .top-navbar .opacity-60 { font-size: 0 !important; }
    .tg-head .top-navbar .opacity-60 img { margin: 0 6px 0 0 !important; }
}
@media (max-width: 575px) {
    .tg-head #currency-change { display: none !important; }
}

/* ===== Footer (Target-style) ===== */
.tg-footer-cats { background: #f5f5f5; padding: 28px 0 24px; margin-top: 32px; }
.tg-footer-cats h3 { font-size: 16px; font-weight: 500; color: #555; margin: 0 0 16px; }
.tg-footer-cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.tg-footer-cats a { color: #555; font-size: 11px; text-decoration: none; }
.tg-footer-cats a:hover { color: #0259fa; }
.tg-footer-cats .tg-fc-parent { display: block; font-weight: 700; margin-bottom: 4px; }
.tg-footer-cats p { margin: 0; line-height: 1.5; }
.footer-widget { padding-top: 24px !important; padding-bottom: 24px !important; }
.footer-widget .container { border-top: 0; }
.footer-widget .col-lg-5 img { height: 48px; width: auto; }
.footer-widget h4 { font-size: 16px !important; border: 0 !important; }
.footer-widget .opacity-50, .footer-widget .opacity-30, .footer-widget .opacity-70 { opacity: 1 !important; font-size: 13px; }
.footer-widget .form-control { border: 1px solid #e0e0e0; border-radius: 4px; height: 44px; }
.footer-widget .btn-primary { background: #fff !important; color: #0259fa !important; border: 1px solid #0259fa !important; border-radius: 4px !important; }
.tg-policy-row { border-top: 1px dotted #aaa; background: #fff; }
.tg-policy-row .container { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 18px; padding-bottom: 18px; }
.tg-policy-row a { color: #222; font-size: 15px; text-decoration: none; }
footer.bg-black { background: #fff !important; color: #555 !important; border-top: 1px dotted #aaa; }
footer.bg-black a, footer.bg-black p { color: #555 !important; }
@media (max-width: 767px) {
    .tg-footer-cats-grid { grid-template-columns: 1fr; }
    .tg-policy-row .container { gap: 8px 20px; }
}

/* ===== v2: metrics measured from reference (tiarigieit.jp) ===== */
@media (min-width: 1200px) { .container { max-width: 1185px !important; } }
.container { padding-left: 12px; padding-right: 12px; }

/* header */
.tg-head .logo-bar-area .col-xl-3 img { height: 30px !important; width: auto; max-width: 160px; }
.tg-head .front-header-search .input-group {
    border: .8px solid #eee; border-radius: 4px; height: 50px; padding: 3px 3px 3px 12px; flex-wrap: nowrap; align-items: center;
}
.tg-head .front-header-search input.form-control { border: 0 !important; height: 42px; box-shadow: none !important; padding-left: 0; font-size: 16px; }
.tg-head .front-header-search .tg-search-btn { width: 61px; height: 42px; padding: 0; border-radius: 4px !important; font-size: 14px; font-weight: 500; }
.tg-auth-links { display: flex; align-items: center; color: rgba(0,0,0,.87); }
.tg-auth-links i { font-size: 30px; line-height: 1; opacity: .7; margin-right: 12px; }
.tg-auth-links a { font-size: 16px !important; font-weight: 500 !important; color: rgba(0,0,0,.87) !important; opacity: .8; }
.tg-auth-links span { margin: 0 12px; font-size: 16px; opacity: .6; }
.tg-nav { border-bottom: 1px solid rgba(0,0,0,.12); background: #fff; }
.tg-nav .container { padding-top: 8px; padding-bottom: 8px; }
.tg-nav ul { display: flex; justify-content: center; align-items: center; margin: 0; padding: 0; list-style: none; }
.tg-nav a { display: block; padding: 0 16px; line-height: 30px; font-size: 13px; font-weight: 700; color: rgba(0,0,0,.87); text-decoration: none; }
.tg-nav a:hover { color: #0259fa; }

/* hero: 571 | 275 | 275, 20px gaps, 278px high */
.tg-home .tg-hero { display: grid; grid-template-columns: 571fr 275fr 275fr; grid-template-rows: 129px 129px; gap: 20px; height: 278px; margin: 21px 0 0; }
.tg-home .tg-hero a { display: block; min-height: 0; overflow: hidden; border-radius: 0; }
.tg-home .tg-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-home .tg-hero-main { grid-column: 1; grid-row: 1 / 3; }
.tg-home .tg-hero-side { display: contents; }
.tg-home .tg-hero-side a:nth-child(1) { grid-column: 2; grid-row: 1 / 3; }
.tg-home .tg-hero-side a:nth-child(2) { grid-column: 3; grid-row: 1; }
.tg-home .tg-hero-side a:nth-child(3) { grid-column: 3; grid-row: 2; }

/* notice block: 140px black */
.tg-home .tg-notice { display: flex; justify-content: space-between; align-items: flex-start; background: #000; color: #fff; border-radius: 8px; height: 140px; padding: 28px 12px 0; margin: 18px 0 0; }
.tg-home .tg-notice p { margin: 0 0 12px; font-size: 13px; line-height: 1; color: #fff; }
.tg-home .tg-notice-text { width: 50%; }
.tg-home .tg-notice .tg-copy { margin-top: 12px; opacity: .8; }
.tg-notice-icons { display: flex; gap: 11px; list-style: none; margin: 8px 0 0; padding: 0; }
.tg-notice-icons img { width: 32px; height: 32px; display: block; border-radius: 50%; }

/* block headings */
.tg-block-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; }
.tg-home .tg-block-head { margin-top: 0; }
.tg-block-head h2, .tg-section-title { font-size: 24px; font-weight: 700; line-height: 36px; color: rgba(0,0,0,.87); margin: 0; }
.tg-block-head a, .tg-more { font-size: 16px; color: #0259fa; padding: 2px 0; }
.tg-section { margin: 0 0 20px; padding-top: 20px; }
.tg-section .container > .tg-block-head { margin-bottom: 16px; }
.tg-home .tg-block-head { margin-top: 0; }

/* popular categories: 7 cards 149x187 */
.tg-home .tg-cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.tg-home .tg-cat-card { border: .8px solid #eee; border-radius: 4px; padding: 16px; text-align: center; display: block; height: 187px; background: #fff; box-shadow: none; }
.tg-home .tg-cat-card img { width: 115px; height: 115px; object-fit: contain; display: block; margin: 0 auto; }
.tg-home .tg-cat-card span { display: block; margin-top: 12px; font-size: 13px; line-height: 19.5px; color: rgba(0,0,0,.87); opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* product row (swiper-like) and card 216x329 */
.tg-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tg-row::-webkit-scrollbar { display: none; }
.tg-row > * { flex: 0 0 calc((100% - 80px) / 5); min-width: 0; scroll-snap-align: start; }
.tg-pb { border: .8px solid #eee; border-radius: 4px; overflow: hidden; background: #fff; height: 100%; }
.tg-pb-media { display: block; height: 180px; line-height: 0; }
.tg-pb-media img { width: 100%; height: 180px; object-fit: cover; }
.tg-pb-body { padding: 8px 12px; min-height: 148px; display: flex; flex-direction: column; }
.tg-pb-price { font-size: 16px; line-height: 24px; margin-bottom: 8px; font-weight: 700; color: rgba(0,0,0,.87); }
.tg-pb-price del { font-weight: 400; opacity: .5; font-size: 13px; margin-right: 6px; }
.tg-pb-name { font-size: 13px; line-height: 20.8px; font-weight: 400; opacity: .6; margin: 0 0 8px; height: 41.6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tg-pb-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tg-pb-buy { background: none; border: 0; padding: 4px 0; display: flex; align-items: center; color: rgba(0,0,0,.87); line-height: 16px; }
.tg-pb-buy i { font-size: 20px; margin-right: 4px; }
.tg-pb-buy span { font-size: 13px; font-weight: 700; }
.tg-pb-wish { background: none; border: 0; padding: 4px; color: #0259fa; line-height: 1; }
.tg-pb-wish i { font-size: 18px; }
@media (max-width: 991px) {
    .tg-row > * { flex-basis: calc((100% - 40px) / 3); }
    .tg-home .tg-cat-grid { display: flex; overflow-x: auto; scrollbar-width: none; }
    .tg-home .tg-cat-card { flex: 0 0 120px; height: auto; }
    .tg-home .tg-cat-card img { width: 88px; height: 88px; }
}
@media (max-width: 575px) {
    .tg-row { gap: 12px; }
    .tg-row > * { flex-basis: calc((100% - 12px) / 2); }
    .tg-home .tg-hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: 8px; margin-top: 12px; }
    .tg-home .tg-hero-main { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 2 / 1; }
    .tg-home .tg-hero-side a:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
    .tg-home .tg-hero-side a:nth-child(3) { display: none; }
    .tg-home .tg-notice { height: auto; flex-direction: column; padding: 16px 12px; }
    .tg-home .tg-notice-text { width: 100%; }
    .tg-notice-icons { margin-top: 12px; flex-wrap: wrap; }
}

/* v2 fixes */
.tg-section { margin: 0 0 20px !important; padding: 0 !important; }
.tg-home { margin-bottom: 20px; padding-bottom: 0 !important; }
.tg-pb-body { min-height: 147.4px; }
@media (min-width: 992px) {
    .tg-head .logo-bar-area > .container > .d-flex { justify-content: flex-start; }
    .tg-head .front-header-search.flex-grow-1 { margin: 0 0 0 270px !important; }
}
.tg-home .tg-cat-grid { margin-bottom: 0; }
.tg-block-head { margin: 0 0 16px; align-items: center; }
.tg-block-head h2, .tg-section-title { color: rgba(0,0,0,.87); font-weight: 700; line-height: 36px; }

/* ===== footer v3 (match reference) ===== */
.tg-footer-cats{background:#f5f5f5;padding:32px 0;margin-top:32px}
.tg-footer-cats .container>h3{font-size:16px;font-weight:700;text-transform:none;color:#000;border-top:1px solid #e5e5e5;padding-top:32px;margin:0 0 16px}
.tg-footer-cats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0 24px}
.tg-footer-cats-grid>div{margin-bottom:16px}
.tg-footer-cats a{font-size:11px;line-height:16px;color:rgba(0,0,0,.87)}
.tg-footer-cats .tg-fc-parent{font-weight:700;display:block}
.tg-footer-cats p{margin:0;font-size:11px;line-height:16px;color:rgba(0,0,0,.87)}
@media(max-width:991px){.tg-footer-cats-grid{grid-template-columns:repeat(2,1fr)}}
.tg-footer-main{background:#fff!important;color:#000!important;padding:0 0 24px}
.tg-footer-main .tg-footer-logo{padding:24px 0 28px;border-bottom:1px solid #e5e5e5}
.tg-footer-main .tg-footer-logo img{height:57px;width:auto}
.tg-footer-main h4{font-size:16px!important;font-weight:700!important;text-transform:none!important;border:0!important;color:#000}
.tg-footer-main a,.tg-footer-main li,.tg-footer-main span{color:#000!important;opacity:1!important;font-size:13px}
.tg-footer-main .opacity-30,.tg-footer-main .opacity-70{opacity:1!important}
.tg-footer-main .form-control{height:32px;width:248px;max-width:100%;font-size:13px}
.tg-footer-main .btn-primary{height:42px;background:#fff!important;color:#0259fa!important;border:1px solid #0259fa!important;border-radius:4px!important}
.tg-footer-main .h-40px{height:40px}
.tg-policy-row{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;background:#fff}
.tg-policy-row .container{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 56px;padding:16px 0}
.tg-policy-row a{font-size:16px;color:#000}
.tg-footer-bottom{background:#fff!important;color:#000!important}
.tg-footer-bottom *{color:#000}

/* home banners */
.tg-banners{display:flex;gap:20px}
.tg-banner{flex:1 1 0;min-width:0;display:block;border-radius:4px;overflow:hidden}
.tg-banner img{width:100%;height:auto;display:block}
@media(max-width:767px){.tg-banners{flex-direction:column;gap:10px}}

/* footer v4: layout aligned to reference measurements */
.tg-footer-main{padding-bottom:0}
.tg-footer-main .tg-footer-logo{padding:44px 0 24px;text-align:left}
.tg-footer-main .row{padding-top:8px}
.tg-footer-main .row>[class*=col-]>div{margin-top:24px!important}
.tg-footer-main .form-control{height:32px!important;width:248px!important;border-radius:4px!important;padding:0 10px}
.tg-footer-main .form-inline{flex-wrap:nowrap;align-items:center}
.tg-footer-main .form-inline .form-group{margin:0 8px 0 0!important}
.tg-footer-main .btn-primary{min-width:161px;height:42px}
.tg-footer-main .tg-about,.tg-footer-main .tg-about *{font-size:14px;font-weight:700;color:#000!important}
.tg-footer-main h4{margin:0 0 24px!important;padding:0!important;line-height:24px}
.tg-footer-main ul.list-unstyled li{margin:0 0 21px!important;line-height:15px}
.tg-footer-main ul.list-unstyled li span.d-block{line-height:18px}
.tg-footer-main .w-300px a{display:block;margin:0 0 14px!important}
.tg-footer-main .w-300px img{width:135px;height:40px!important;object-fit:contain}
.tg-policy-row .container{justify-content:flex-start;gap:12px 56px;padding:16px 0 20px}
.tg-policy-row a{font-size:16px;line-height:19px}
.tg-footer-bottom{border-top:1px solid #e5e5e5;padding-top:12px!important}
.tg-footer-bottom .container{font-size:12px}
@media(max-width:991px){
  .tg-footer-main .tg-footer-logo{padding:24px 0 16px}
  .tg-footer-main .form-control{width:100%!important}
  .tg-policy-row .container{gap:8px 20px}
  .tg-policy-row a{font-size:13px}
}
.tg-footer-main .form-inline{flex-direction:column;align-items:flex-start}
.tg-footer-main .form-inline .form-group{margin:0 0 5px!important}
.tg-footer-main .form-inline .form-control,.tg-footer-main .form-inline input[type=email]{height:32px!important;min-height:0;line-height:30px;padding:0 10px}
.tg-footer-main .form-inline .btn-primary{margin-top:6px}
.tg-footer-main .tg-about{margin-top:0!important}
.tg-policy-row .container{padding:16px 12px 20px}
.tg-footer-bottom .container{padding-left:12px;padding-right:12px}
.tg-footer-main ul.list-unstyled li:has(.d-block){line-height:18px;height:auto!important;overflow:visible!important}
.tg-footer-main ul.list-unstyled li span.d-block{height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal;display:block!important}

/* inner pages v2: all categories aligned to reference */
.category-menu-icon-box{display:none!important}
.tg-page{padding:24px 0 40px}
.tg-page-title{font-size:32px;font-weight:700;line-height:48px;margin:0 0 28px}
.tg-all-cats{gap:24px}
.tg-all-cat{grid-template-columns:181px 1fr;gap:0;min-height:213px;padding:24px;border:.8px solid #eee;border-radius:4px}
.tg-all-cat img{width:157px;height:157px;margin:0 12px}
.tg-all-cat h2{font-size:18.72px;font-weight:700;margin:0 0 16px}
.tg-all-cat p{font-size:16px;line-height:24px;color:rgba(0,0,0,.87)}
@media(max-width:767px){.tg-all-cats{grid-template-columns:1fr;gap:12px}.tg-all-cat{grid-template-columns:100px 1fr;min-height:0;padding:16px}.tg-all-cat img{width:90px;height:90px;margin:0}.tg-page-title{font-size:22px;line-height:32px;margin-bottom:16px}}

/* shops listing */
.tg-shops-banner{height:198px;overflow:hidden}
.tg-shops-banner img{width:100%;height:100%;object-fit:cover;display:block}
.tg-shops-bar{display:flex;align-items:center;gap:24px;margin:40px 0 32px}
.tg-shops-bar .tg-page-title{margin:0;font-size:24px;line-height:32px;flex:1 1 auto}
.tg-shops-search{display:flex;align-items:center;width:305px;height:45px;border:.8px solid #eee;border-radius:4px;padding-right:4px}
.tg-shops-search input{flex:1;min-width:0;border:0;outline:0;padding:0 12px;font-size:16px;background:transparent}
.tg-shops-search button{height:42px;padding:0 16px;border:0;border-radius:4px;background:#0259fa;color:#fff;font-weight:700;font-size:14px}
.tg-shops-bar select{width:213px;height:45px;border:.8px solid #eee;border-radius:4px;padding:0 12px;font-size:14px;color:rgba(0,0,0,.6);background:#fff}
@media(max-width:767px){.tg-shops-bar{flex-wrap:wrap;gap:10px;margin:20px 0}.tg-shops-bar .tg-page-title{flex:0 0 100%}.tg-shops-search{flex:1 1 100%;width:auto}.tg-shops-bar select{flex:1 1 calc(50% - 5px);width:auto}.tg-shops-banner{height:100px}}
.tg-footer-main .tg-footer-logo{border-bottom:1px dotted #aaa}

/* product listing v2 */
#search-form .breadcrumb{display:none}
#search-form .aiz-filter-sidebar .bg-white.shadow-sm{box-shadow:none!important;border-radius:0!important;border-bottom:1px solid #eee;margin-bottom:0!important}
#search-form .aiz-filter-sidebar .bg-white .border-bottom{border-bottom:0!important;font-size:14px;font-weight:700;padding:20px 20px 8px!important}
@media(min-width:1200px){#search-form .aiz-filter-sidebar{border-right:1px solid #eee;min-height:300px}}
#search-form h1.h6{font-size:20px;font-weight:700;margin:0}
.tg-total{font-size:12px;color:rgba(0,0,0,.6)}
#search-form .row:has(>.col>.tg-pb){display:grid;grid-template-columns:repeat(4,1fr);gap:24px 20px;margin:20px 0 0}
#search-form .row:has(>.col>.tg-pb)>.col{width:auto;max-width:none;padding:0;flex:none}
@media(max-width:1199px){#search-form .row:has(>.col>.tg-pb){grid-template-columns:repeat(3,1fr)}}
@media(max-width:767px){#search-form .row:has(>.col>.tg-pb){grid-template-columns:repeat(2,1fr);gap:12px 10px;padding:0 10px}}

/* product detail v2 */
.add-to-cart,.buy-now{border-radius:4px!important;height:42px;min-width:0;flex:1 1 0;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.add-to-cart{background:#212121!important;color:#fff!important;border:0!important}
.buy-now{background:#0259fa!important;color:#fff!important;border:0!important}
.add-to-cart.mr-2{margin-right:12px!important}
.mt-3:has(>.add-to-cart){display:flex;flex-wrap:wrap}

/* login / registration v2 (reference style) */
section.gry-bg.py-5,section.gry-bg.py-5 .profile{background:#fff!important;background-image:none!important}
section.gry-bg.py-5{padding:76px 0!important}
.tg-auth{grid-template-columns:560px 1fr;gap:0;border:.8px solid #eee!important;border-radius:4px!important;box-shadow:0 20px 40px rgba(0,0,0,.05)!important;padding:20px;background:#fff}
.tg-auth::before{min-height:512px;border-radius:0}
.tg-auth-body{padding:0 28px!important}
.tg-auth-body .text-center{text-align:left!important;padding-top:20px!important}
.tg-auth-body h1{font-size:24px;font-weight:400;text-transform:uppercase;color:rgba(0,0,0,.6);line-height:1.4}
.tg-auth-body h1::after{content:none}
.tg-auth-body .form-control{height:44px;border:.8px solid #eee;border-radius:4px;background:#fff}
.tg-auth-body .btn-primary.btn-block{width:auto;min-width:170px;height:52px;border-radius:4px!important;background:#0259fa!important;border:0}
.tg-auth-body .separator span{padding-left:0!important}
.tg-auth-body .text-center:last-child{text-align:left!important}
@media(max-width:991px){.tg-auth{grid-template-columns:1fr;padding:12px}.tg-auth::before{display:none}.tg-auth-body{padding:0 8px!important}section.gry-bg.py-5{padding:24px 0!important}}
.profile .col-lg-10.mx-auto{flex:0 0 100%;max-width:100%}

/* product detail v3 (3-column like reference) */
.tg-detail-v2 .product-gallery-thumb .carousel-box{margin:0 4px;width:auto}
.tg-detail-v2 .product-gallery-thumb .carousel-box img{width:100%;height:80px;object-fit:cover}
.tg-detail-v2 .aiz-nav-tabs{background:#0259fa;border-bottom:0!important}
.tg-detail-v2 .aiz-nav-tabs a{color:#fff!important;border-bottom:0!important;opacity:.85}
.tg-detail-v2 .aiz-nav-tabs a.active{opacity:1}
.tg-detail-v2 .col-xl-3 .bg-white{box-shadow:none!important;border:.8px solid #eee;border-radius:4px}
.tg-detail-v2 .col-xl-3 .border-bottom{font-size:16px!important;border:0!important}
@media(min-width:1200px){.tg-detail-v2 .col-xl-3{flex:0 0 270px;max-width:270px}.tg-detail-v2 .col-xl-9{flex:1 1 0;max-width:none}}
@media(min-width:1200px){.tg-detail-v2 .col-xl-9{flex:0 0 calc(100% - 270px);max-width:calc(100% - 270px);min-width:0}.tg-detail-v2 .col-xl-3{flex:0 0 270px}.tg-detail-v2>.container>.row{flex-wrap:nowrap}}

/* user panel v2 (reference style) */
.aiz-user-sidenav-wrap{box-shadow:none!important;flex:0 0 290px;width:290px;margin-right:0}
.aiz-user-sidenav{border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff}
.aiz-user-sidenav>.bg-primary,.aiz-user-sidenav .bg-primary{background:#fff!important;color:#000!important;border:0!important;text-align:center!important;padding:20px 16px 12px!important}
.aiz-user-sidenav .avatar,.aiz-user-sidenav .avatar img{width:160px;height:160px;border-radius:50%!important}
.aiz-user-sidenav .avatar{display:block;margin:0 auto 12px!important;border:4px solid #eee;overflow:hidden}
.aiz-user-sidenav .avatar img{object-fit:cover}
.aiz-user-sidenav h4.h5{font-size:18px!important;font-weight:500;color:#000}
.aiz-user-sidenav .text-truncate{color:rgba(0,0,0,.6)!important;opacity:1!important;font-size:14px}
.aiz-user-sidenav .sidemnenu{margin-top:12px}
.aiz-user-sidenav .aiz-side-nav-list{padding:0!important}
.aiz-user-sidenav .aiz-side-nav-link{height:49px;display:flex;align-items:center;padding:0 20px;border-radius:0!important;font-size:13px;font-weight:500;color:#000;background:transparent}
.aiz-user-sidenav .aiz-side-nav-link .aiz-side-nav-icon{color:#000;opacity:.75;margin-right:12px;font-size:18px}
.aiz-user-sidenav .aiz-side-nav-link.active,.aiz-user-sidenav .aiz-side-nav-link:hover{background:#0259fa!important;color:#fff!important}
.aiz-user-sidenav .aiz-side-nav-link.active *,.aiz-user-sidenav .aiz-side-nav-link:hover *{color:#fff!important;opacity:1}
.aiz-user-panel{flex:1 1 0;min-width:0;padding:0 0 0 28px}
.aiz-user-panel .aiz-titlebar h1{font-size:24px;font-weight:700}
.aiz-user-panel .bg-grad-1,.aiz-user-panel .bg-grad-2,.aiz-user-panel .bg-grad-3{background:#424242!important;border-radius:4px!important;text-align:center;min-height:130px;display:flex;align-items:center;justify-content:center;margin-bottom:24px!important}
.aiz-user-panel .bg-grad-1 svg,.aiz-user-panel .bg-grad-2 svg,.aiz-user-panel .bg-grad-3 svg{display:none}
.aiz-user-panel .bg-grad-1 .px-3,.aiz-user-panel .bg-grad-2 .px-3,.aiz-user-panel .bg-grad-3 .px-3{padding:0!important}
.aiz-user-panel .bg-grad-1 .h3,.aiz-user-panel .bg-grad-2 .h3,.aiz-user-panel .bg-grad-3 .h3{font-size:28px}
.aiz-user-panel .card{border:.8px solid #eee!important;border-radius:4px!important;box-shadow:none!important;background:#fff}
.aiz-user-panel .card-header{background:#fff;border-bottom:.8px solid #eee;padding:16px}
.aiz-user-panel .card-header h6,.aiz-user-panel .card-header h5{font-size:16px;font-weight:700}
@media(max-width:1199px){.aiz-user-sidenav-wrap{flex:none;width:auto}.aiz-user-panel{padding:0}}
.aiz-user-panel{border:0!important;box-shadow:none!important;background:transparent!important}
.aiz-user-panel .bg-grad-1 .opacity-50,.aiz-user-panel .bg-grad-2 .opacity-50,.aiz-user-panel .bg-grad-3 .opacity-50{opacity:.9!important;font-size:14px;font-weight:700}

/* dashboard v3 (ref block layout) */
.tg-dash-title{font-size:21px;font-weight:700;opacity:.8;margin-bottom:20px}
.tg-tile-dark{background:#424242;color:#fff;border-radius:4px;height:130px;padding:20px}
.tg-tile-num{font-size:34px;font-weight:500;line-height:1.2}
.tg-tile-add{display:flex;flex-direction:column;align-items:center;justify-content:center;height:130px;background:#f5f5f5;border:1.6px dashed #e2e8f0;border-radius:4px;color:#333;font-size:14px;text-decoration:none}
.tg-tile-add-sm{height:131px}
.tg-stat{background:#fafafa;border:.8px solid #edf2f7;border-radius:4px;padding:20px}
.tg-stat-red .tg-tile-num{color:#f44336}
.tg-stat-green .tg-tile-num{color:#4caf50}
.tg-dash-card{border:.8px solid #edf2f7;border-radius:4px;padding:8px}
.tg-dash-card-title{font-size:16px;font-weight:700;padding:8px;margin:0 0 4px;border-bottom:1px solid #edf2f7}
.tg-dash-list{height:350px;overflow:auto}
.tg-dash-list-sm{height:340px}
.tg-dash-item{display:flex;align-items:center;gap:12px;padding:10px 8px;border-top:1px solid #edf2f7;color:#333;text-decoration:none}
.tg-dash-item:first-child{border-top:0}
.tg-dash-item img{width:70px;height:70px;object-fit:cover;flex:none}
.tg-addr{padding:8px;font-size:16px;line-height:1.8}
.min-w-0{min-width:0}

/* sidebar "more" group + address modal (ref style) */
.tg-more-list{display:none;padding-left:0}
.tg-more-list.show{display:block}
.tg-addr-modal .modal-dialog{max-width:600px}
.tg-addr-modal .modal-content{border:0;border-radius:4px}
.tg-addr-modal .modal-body{padding:24px 20px}
.tg-addr-modal .tg-lbl{font-size:13px;font-weight:700;color:#111;margin-bottom:8px;display:block}
.tg-addr-modal .form-control,.tg-addr-modal .btn.dropdown-toggle{height:44px;border:1px solid #e2e8f0;border-radius:4px;background:#fff;box-shadow:none}
.tg-addr-modal textarea.form-control{height:96px}
.tg-btn-sq{border-radius:4px;min-width:90px;height:42px;font-weight:700}
.tg-addr-modal .tg-btn-sq{border-radius:4px!important}

/* wallet / purchase history / profile (ref) */
.tg-wal-tile{height:150px;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.tg-wal-dark{background:#424242}.tg-wal-grey{background:#757575}
.tg-wal-t{font-size:16px}.tg-wal-n{font-size:48px;line-height:1.2;font-weight:300}
.tg-ph-card{border:.8px solid #edf2f7;border-radius:4px;box-shadow:none}
.tg-ph-table th{font-size:12px;font-weight:700;border-top:0;border-bottom:1px solid #edf2f7;padding:16px 16px}
.tg-ph-table td{vertical-align:middle;padding:16px;border-top:1px solid #edf2f7}
.tg-ph-table tbody tr:first-child td{border-top:0}
.aiz-user-panel .card{border:.8px solid #edf2f7;border-radius:4px;box-shadow:none}
.aiz-user-panel .card-header{background:#fff;border-bottom:1px solid #edf2f7}
.aiz-user-panel .card-header h5,.aiz-user-panel .card-header h6{font-size:20px;font-weight:700}
.aiz-user-panel .form-control{height:44px;border:1px solid #e2e8f0;border-radius:4px;background:#fff}
.aiz-user-panel textarea.form-control{height:auto}
.aiz-user-panel label{font-size:12px;color:#222;margin-bottom:6px}
.aiz-user-panel .btn-primary{border-radius:4px;font-weight:700;min-width:100px}
/* profile: stacked labels like ref */
.aiz-user-panel form .form-group.row{display:block;margin-left:0;margin-right:0}
.aiz-user-panel form .form-group.row>[class*="col-"]{max-width:100%;flex:none;width:100%;padding-left:0;padding-right:0}
.aiz-user-panel form .form-group.row>label.col-form-label{padding-top:0}
.aiz-user-panel form .row>.col-md-2:has(>label){max-width:100%;flex:0 0 100%}
.aiz-user-panel form .row>.col-md-10{max-width:100%;flex:0 0 100%}

/* purchase history: mobile stacked rows */
@media (max-width: 767px){
  .tg-ph-table, .tg-ph-table tbody, .tg-ph-table tr, .tg-ph-table td{display:block;width:100%}
  .tg-ph-table thead{display:none}
  .tg-ph-table tr{padding:12px 0;border-bottom:1px solid #eee}
  .tg-ph-table td{border:0!important;padding:4px 12px!important;text-align:left!important;white-space:normal!important;word-break:normal!important}
  .tg-ph-table td.text-right a{margin-right:16px}
}
