/* Mintai Product Manager — frontend styles (prefixed .mtai to avoid theme conflicts) */
.mtai, .mtai * { box-sizing: border-box; }
.mtai { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #33312e; line-height: 1.65; }
.mtai img { max-width: 100%; display: block; }
.mtai a { text-decoration: none; }
.mtai-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ==================== LANDING ==================== */
/* full-width page: theme header (menu) + footer kept, title band hidden, content stretched edge to edge */
.mtai-fullwidth-page { background: #faf8f4; margin: 0; }
.mtai-fullwidth-page #mtai-page { min-height: 60vh; }

/* built-in menu bar (Page Mode: Full Width + Menu Bar) */
.mtai-site-header { background: #fff; border-bottom: 1px solid #ececec; position: relative; z-index: 100; }
.mtai-site-header-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 64px;
}
.mtai-site-logo img { max-height: 44px; width: auto; display: block; }
.mtai-site-name { font-size: 20px; font-weight: 700; color: #222; text-decoration: none; }
.mtai-site-nav ul.mtai-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.mtai-site-nav ul.mtai-nav li { position: relative; margin: 0; padding: 0; }
.mtai-site-nav ul.mtai-nav a { display: block; padding: 20px 0; color: #333; font-size: 15px; line-height: 1.4; text-decoration: none; }
.mtai-site-nav ul.mtai-nav a:hover { color: #f0680f; }
.mtai-site-nav ul.mtai-nav li ul {
    display: none; position: absolute; top: 100%; left: 0; z-index: 101;
    background: #fff; min-width: 200px; padding: 8px 0; margin: 0; list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.1); border-radius: 8px;
}
.mtai-site-nav ul.mtai-nav li:hover > ul { display: block; }
.mtai-site-nav ul.mtai-nav li ul a { padding: 10px 20px; font-size: 14px; }
@media (max-width: 860px) {
    .mtai-site-header-inner { padding: 10px 20px; }
    .mtai-site-nav ul.mtai-nav a { padding: 10px 0; }
}

/* theme mode: hide the theme's page-title / breadcrumb band on plugin pages */
.mtai-mode-theme .entry-header,
.mtai-mode-theme .page-header,
.mtai-mode-theme .page-title,
.mtai-mode-theme .page-title-wrapper,
.mtai-mode-theme .page-heading,
.mtai-mode-theme .page-banner,
.mtai-mode-theme .title-bar,
.mtai-mode-theme .entry-title,
.mtai-mode-theme .ast-page-title,
.mtai-mode-theme .breadcrumb,
.mtai-mode-theme .breadcrumbs,
.mtai-mode-theme #breadcrumbs,
.mtai-mode-theme .woocommerce-breadcrumb { display: none !important; }

/* theme mode: stretch the theme's content container to full width (header containers are outside #content, so menu layout is untouched) */
.mtai-mode-theme #content,
.mtai-mode-theme .site-content,
.mtai-mode-theme .content-area,
.mtai-mode-theme #primary,
.mtai-mode-theme .site-main,
.mtai-mode-theme #content .container,
.mtai-mode-theme .site-content .container,
.mtai-mode-theme .content-area .container,
.mtai-mode-theme #content .row,
.mtai-mode-theme .site-content .row {
    max-width: 100% !important; width: 100% !important;
    margin-left: 0 !important; margin-right: 0 !important;
    padding-left: 0 !important; padding-right: 0 !important;
}
.mtai-mode-theme #content,
.mtai-mode-theme .site-content { padding-top: 0 !important; padding-bottom: 0 !important; }
.mtai-mode-theme article,
.mtai-mode-theme .hentry,
.mtai-mode-theme .entry-content,
.mtai-mode-theme .post-content {
    max-width: 100% !important; margin: 0 !important; padding: 0 !important;
}

.mtai-banner {
    min-height: 380px; display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(160deg, #191930 0%, #22224a 55%, #2c2c56 100%);
    background-size: cover; background-position: center;
    padding: 84px 0;
}
.mtai-banner .mtai-crumb { color: #9a9ac0; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.mtai-banner h1 { color: #fff; font-size: 46px; font-weight: 800; margin: 0 0 16px; line-height: 1.2; }
.mtai-banner p { color: #cfcfe2; font-size: 17px; max-width: 680px; margin: 0 auto; }

/* optional intro section between banner and models */
.mtai-intro { background: #faf8f4; padding: 48px 0 0; }
.mtai-intro-card {
    background: #fff; border: 1px solid #f0eadd; border-radius: 16px;
    padding: 32px 36px; font-size: 15.5px; color: #4a443d;
    box-shadow: 0 4px 16px rgba(60,50,40,.05);
}
.mtai-intro-card > :first-child { margin-top: 0; }
.mtai-intro-card > :last-child { margin-bottom: 0; }

.mtai-models { padding: 56px 0 76px; background: #faf8f4; }
.mtai-sec-head { text-align: center; margin-bottom: 44px; }
.mtai-sec-head .mtai-en { color: #f0680f; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }
.mtai-sec-head h2 { font-size: 32px; font-weight: 800; color: #2e2b28; margin: 6px 0 0; }

.mtai-model-grid { display: grid; grid-template-columns: repeat(var(--mtai-cols, 3), 1fr); gap: 26px; }
.mtai-m-card {
    background: #fff; border-radius: 16px; overflow: hidden; display: block; color: inherit;
    box-shadow: 0 4px 18px rgba(60,50,40,.07); border: 1px solid #f0eadd; transition: transform .25s, box-shadow .25s;
}
.mtai-m-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(60,50,40,.14); }
.mtai-m-img { height: 220px; background: #efe9dd; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mtai-m-img img { width: 100%; height: 100%; object-fit: cover; }
.mtai-m-placeholder { color: #a5977f; font-size: 15px; letter-spacing: 1px; text-align: center; }
.mtai-m-body { padding: 22px 24px 26px; }
.mtai-m-body h3 { font-size: 20px; font-weight: 800; color: #2e2b28; margin: 0; }
.mtai-m-body h3 small { display: block; font-size: 13px; font-weight: 500; color: #a5977f; margin-top: 3px; }
.mtai-m-pos { color: #8a7a5f; font-size: 14px; margin: 10px 0 16px; min-height: 40px; }
.mtai-m-link { color: #f0680f; font-weight: 700; font-size: 14px; }

/* ==================== DETAIL ==================== */
.mtai-detail { background: #faf8f4; padding: 40px 0 0; }

.mtai-d-head h1 { font-size: 30px; font-weight: 800; color: #232120; margin: 0 0 6px; }
.mtai-d-head p { color: #8a7a5f; font-size: 15px; margin: 0 0 26px; }

/* model selector */
.mtai-tabs-bar {
    background: #fff; border: 1px solid #f0eadd; border-radius: 16px;
    padding: 18px 24px 22px; box-shadow: 0 4px 16px rgba(60,50,40,.05); margin-bottom: 26px;
}
.mtai-tabs-label { font-size: 13px; font-weight: 700; color: #4a443d; letter-spacing: .5px; margin-bottom: 14px; display: flex; align-items: center; }
.mtai-tabs-label i { width: 4px; height: 14px; background: #f0680f; border-radius: 2px; margin-right: 8px; }
.mtai-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.mtai-tab {
    min-width: 130px; padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
    background: #f7f3ea; font-size: 16px; font-weight: 700; color: #4a443d; cursor: pointer;
    text-align: center; transition: .2s; line-height: 1.3;
}
.mtai-tab small { display: block; font-size: 12px; font-weight: 500; color: #a5977f; margin-top: 2px; }
.mtai-tab:hover { border-color: #f0680f; color: #f0680f; }
.mtai-tab.active { background: linear-gradient(135deg,#f5851f,#f0680f); color: #fff; box-shadow: 0 6px 16px rgba(240,104,15,.35); }
.mtai-tab.active small { color: rgba(255,255,255,.85); }

.mtai-pane { display: none; }
.mtai-pane.active { display: block; animation: mtaiFade .3s ease; }
@keyframes mtaiFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* main: gallery + info */
.mtai-d-main { display: flex; gap: 26px; margin-bottom: 26px; }
.mtai-d-gallery {
    flex: 0 0 48%; background: #fff; border: 1px solid #f0eadd; border-radius: 16px;
    padding: 22px; box-shadow: 0 4px 16px rgba(60,50,40,.05);
}
.mtai-d-img {
    border-radius: 12px; background: #f3efe6; overflow: hidden; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
}
.mtai-d-img img { width: 100%; height: 100%; object-fit: cover; }
.mtai-d-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.mtai-thumb {
    width: 84px; height: 64px; border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 2px solid #ece4d6; background: #f7f3ea; padding: 0; transition: .2s;
}
.mtai-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mtai-thumb:hover { border-color: #f5b06a; }
.mtai-thumb.active { border-color: #f0680f; }

.mtai-d-info {
    flex: 1; min-width: 0; background: #fff; border: 1px solid #f0eadd; border-radius: 16px;
    padding: 26px 28px; box-shadow: 0 4px 16px rgba(60,50,40,.05);
}
.mtai-badge {
    display: inline-flex; align-items: center; gap: 6px; background: #fdf1e3; color: #f0680f;
    font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 6px 14px; border-radius: 20px; margin-bottom: 14px;
}
.mtai-d-name { font-size: 30px; font-weight: 800; color: #232120; margin: 0 0 18px; line-height: 1.25; }
.mtai-d-name small { display: block; font-size: 15px; font-weight: 500; color: #a5977f; margin-top: 2px; }

.mtai-posbox {
    background: linear-gradient(90deg,#fff6ea,#fffdf8); border-left: 4px solid #f0680f;
    border-radius: 0 12px 12px 0; padding: 16px 20px; margin-bottom: 20px;
}
.mtai-posbox-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #f0680f; text-transform: uppercase; margin-bottom: 6px; }
.mtai-posbox p { margin: 0 0 4px; font-size: 15px; color: #4a443d; font-weight: 600; }
.mtai-posbox p:last-child { margin-bottom: 0; font-weight: 400; color: #8a7a5f; }

.mtai-attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.mtai-attr { background: #faf8f4; border: 1px solid #f0eadd; border-radius: 10px; padding: 12px 16px; }
.mtai-attr-label { font-size: 11px; color: #a5977f; letter-spacing: .5px; margin-bottom: 3px; }
.mtai-attr-val { font-size: 15px; font-weight: 700; color: #33312e; }

.mtai-cta { display: flex; flex-direction: column; gap: 12px; }
.mtai-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 10px; padding: 15px 30px; font-size: 16px; font-weight: 800; letter-spacing: .5px;
    color: #fff !important; transition: filter .2s, transform .2s; text-align: center;
}
.mtai-btn:hover { filter: brightness(1.07); transform: translateY(-2px); }
.mtai-btn-inq { background: linear-gradient(90deg,#f5851f,#f0680f); box-shadow: 0 6px 18px rgba(240,104,15,.35); }
.mtai-btn-wa  { background: linear-gradient(90deg,#34b355,#25a244); box-shadow: 0 6px 18px rgba(37,162,68,.3); }

/* content cards */
.mtai-card {
    background: #fff; border: 1px solid #f0eadd; border-radius: 16px;
    padding: 26px 32px 30px; margin-bottom: 26px; box-shadow: 0 4px 16px rgba(60,50,40,.05);
}
.mtai-card-title { font-size: 20px; font-weight: 800; color: #232120; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid #f3eee2; display: flex; align-items: center; }
.mtai-bar { width: 4px; height: 20px; background: #f0680f; border-radius: 2px; margin-right: 10px; }
.mtai-chip {
    background: linear-gradient(135deg,#f5851f,#f0680f); color: #fff; font-size: 13px; font-weight: 700;
    border-radius: 7px; padding: 3px 10px; margin-right: 12px; font-style: italic;
}

.mtai-dots { list-style: none; margin: 0; padding: 0; }
.mtai-dots li { position: relative; padding: 7px 0 7px 20px; font-size: 15px; color: #4a443d; }
.mtai-dots li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #f0680f; }

.mtai-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.mtai-spec td { padding: 14px 18px; border: 1px solid #f0eadd; color: #33312e; }
.mtai-spec .mtai-spec-k { width: 32%; background: #faf8f4; color: #8a7a5f; font-size: 14px; }
.mtai-spec tr td:last-child { font-weight: 600; }

.mtai-scope { display: flex; gap: 24px; }
.mtai-scope-col { flex: 1; background: #faf8f4; border: 1px solid #f0eadd; border-radius: 12px; padding: 20px 22px; }
.mtai-scope-label { font-size: 12px; color: #a5977f; letter-spacing: .5px; margin-bottom: 14px; }
.mtai-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mtai-chips span {
    background: #fff; border: 1px solid #e8e0cf; border-radius: 8px; padding: 7px 16px;
    font-size: 14px; color: #4a443d; box-shadow: 0 1px 3px rgba(60,50,40,.06);
}

/* accordion */
.mtai-acc-wrap { padding-bottom: 22px; }
.mtai-acc-item { background: #fbf9f4; border: 1px solid #f0eadd; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.mtai-acc-head {
    width: 100%; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    background: none; border: none; padding: 18px 24px; font-size: 16px; font-weight: 800; color: #33312e; text-align: left;
}
.mtai-acc-ic { width: 10px; height: 10px; border-right: 2.5px solid #f0680f; border-bottom: 2.5px solid #f0680f; transform: rotate(45deg); transition: .25s; margin-right: 6px; }
.mtai-acc-item.open .mtai-acc-ic { transform: rotate(225deg); }
.mtai-acc-body { padding: 4px 24px 22px; font-size: 14.5px; color: #5a5248; }
.mtai-acc-body p { margin: 0 0 10px; }
.mtai-acc-body ul { margin: 6px 0 0; padding-left: 4px; list-style: none; }
.mtai-acc-body li { position: relative; padding: 4px 0 4px 20px; }
.mtai-acc-body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: #b3a68c; }

/* news (bottom, unchanged) */
.mtai-news { padding: 64px 0 76px; background: #faf8f4; }
.mtai-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mtai-n-card {
    border: 1px solid #f0eadd; border-radius: 16px; overflow: hidden; background: #fff; display: block; color: inherit;
    box-shadow: 0 4px 14px rgba(60,50,40,.06); transition: transform .25s, box-shadow .25s;
}
.mtai-n-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(60,50,40,.12); }
.mtai-n-img { height: 160px; background: #e9e4d6; overflow: hidden; }
.mtai-n-img img { width: 100%; height: 100%; object-fit: cover; }
.mtai-n-body { padding: 18px 20px 22px; }
.mtai-n-date { font-size: 12px; color: #a5977f; letter-spacing: 1px; }
.mtai-n-body h4 { font-size: 16px; font-weight: 700; color: #232120; margin: 6px 0 8px; line-height: 1.45; }
.mtai-n-body p { font-size: 13.5px; color: #8a7a5f; margin: 0; }

/* ==================== MOBILE ==================== */
@media (max-width: 860px) {
    .mtai-wrap { padding: 0 16px; }
    .mtai-banner { min-height: 0; padding: 64px 0; }
    .mtai-banner h1 { font-size: 30px; }
    .mtai-banner p { font-size: 15px; }
    .mtai-model-grid, .mtai-news-grid { grid-template-columns: 1fr; gap: 18px; }
    .mtai-intro-card { padding: 22px 20px; font-size: 14.5px; }

    .mtai-detail { padding-top: 24px; }
    .mtai-d-head h1 { font-size: 23px; }
    .mtai-d-head p { font-size: 13.5px; }
    .mtai-tabs-bar { padding: 14px 16px 16px; }
    .mtai-tab { flex: 1 1 40%; min-width: 0; padding: 10px 12px; font-size: 14px; }

    .mtai-d-main { flex-direction: column; gap: 16px; }
    .mtai-d-gallery { flex: none; padding: 14px; }
    .mtai-d-info { padding: 20px 18px; }
    .mtai-d-name { font-size: 24px; }
    .mtai-attr-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mtai-card { padding: 20px 18px 22px; }
    .mtai-card-title { font-size: 17px; }
    .mtai-scope { flex-direction: column; gap: 14px; }
    .mtai-spec td { padding: 11px 12px; font-size: 13.5px; }
    .mtai-acc-head { padding: 15px 18px; font-size: 14.5px; }
    .mtai-acc-body { padding: 2px 18px 16px; }
}
