/* ============================================================
   Camera115 — Main CSS v3.0
   Màu/font đọc từ CSS variables được inject bởi Customizer
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color .2s, opacity .2s; }
::selection { background: var(--c-primary, #f97316); color: #fff; }
body { font-family: var(--font-body, 'Inter', sans-serif); color: #1c1917; background: #fafaf9; line-height: 1.65; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif); line-height: 1.2; }

/* ── Topbar ───────────────────────────────────────────────── */
.c115-topbar {
    background: var(--c-header, #0a1628);
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    padding: .45rem 0;
}
.c115-topbar a { color: rgba(255,255,255,.7); }
.c115-topbar a:hover { color: var(--c-primary, #f97316); }
.c115-topbar .hotline { color: var(--c-primary, #f97316); font-weight: 700; font-family: var(--font-heading); }

/* ── Header Main ─────────────────────────────────────────── */
.c115-header {
    background: #fff;
    border-bottom: 1px solid #f0edec;
    padding: .75rem 0;
}
.c115-header.sticky { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.c115-logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #1c1917; }
.c115-logo-text span { color: var(--c-primary, #f97316); }
.c115-tagline { font-size: .65rem; color: #a8a29e; letter-spacing: .5px; }

/* Search bar */
.c115-search { position: relative; }
.c115-search input {
    width: 100%; padding: .6rem 2.8rem .6rem 1rem;
    border: 1px solid #e5e3e1; border-radius: 8px;
    font-size: .875rem; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.c115-search input:focus { border-color: var(--c-primary, #f97316); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.c115-search-btn {
    position: absolute; right: 0; top: 0; height: 100%; padding: 0 .9rem;
    background: var(--c-primary, #f97316); color: #fff;
    border: none; border-radius: 0 8px 8px 0; cursor: pointer;
    transition: background .2s;
}
.c115-search-btn:hover { background: var(--c-primary-dark, #ea580c); }

/* ── Nav ─────────────────────────────────────────────────── */
.c115-nav { border-bottom: 1px solid #f0edec; }
.c115-nav ul { display: flex; list-style: none; gap: 0; }
.c115-nav a {
    display: block; padding: .75rem 1rem;
    font-size: .875rem; font-weight: 500; color: #44403c;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.c115-nav a:hover, .c115-nav a.active {
    color: var(--c-primary, #f97316);
    border-bottom-color: var(--c-primary, #f97316);
}

/* ── Hero ────────────────────────────────────────────────── */
.c115-hero {
    background: linear-gradient(135deg, #fff7f0 0%, #fafaf9 60%, #fff 100%);
    padding: 3.5rem 0 4rem;
}
.c115-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: #1c1917; line-height: 1.15; }
.c115-hero h1 span { color: var(--c-primary, #f97316); }
.c115-hero-sub { color: #57534e; font-size: 1.05rem; line-height: 1.65; margin: 1rem 0 1.75rem; }
.c115-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; border: 1px solid #fed7aa; color: #c2410c;
    font-size: .78rem; font-weight: 600; padding: .35rem .9rem;
    border-radius: 100px; margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(249,115,22,.12);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--c-primary, #f97316);
    color: #fff; font-family: var(--font-heading); font-weight: 700;
    padding: .75rem 1.75rem; border-radius: 8px; border: none;
    cursor: pointer; font-size: .95rem;
    box-shadow: 0 4px 14px rgba(249,115,22,.3);
    transition: background .2s, transform .1s, box-shadow .2s;
}
.btn-primary:hover { background: var(--c-primary-dark, #ea580c); box-shadow: 0 6px 20px rgba(249,115,22,.35); color: #fff; }
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent; color: #1c1917;
    border: 2px solid #1c1917; font-family: var(--font-heading); font-weight: 700;
    padding: .72rem 1.75rem; border-radius: 8px;
    cursor: pointer; font-size: .95rem;
    transition: all .2s;
}
.btn-outline:hover { background: #1c1917; color: #fff; }

/* ── Quick Quote Form (hero) ─────────────────────────────── */
.c115-quote-form {
    background: #fff; border-radius: 16px;
    border: 1px solid #f0edec;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    padding: 1.75rem;
}
.c115-quote-form h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.c115-form-label { font-size: .75rem; font-weight: 600; color: #57534e; display: block; margin-bottom: .3rem; }
.c115-form-input, .c115-form-select {
    width: 100%; border: 1px solid #e5e3e1; border-radius: 8px;
    padding: .6rem .875rem; font-size: .875rem;
    outline: none; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.c115-form-input:focus, .c115-form-select:focus {
    border-color: var(--c-primary, #f97316);
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

/* ── Trust Bar ───────────────────────────────────────────── */
.c115-trust { background: #fff; border-bottom: 1px solid #f0edec; padding: 1rem 0; }
.c115-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.c115-trust-item { display: flex; align-items: center; gap: .65rem; padding: .5rem; }
.c115-trust-icon { font-size: 1.4rem; color: var(--c-primary, #f97316); flex-shrink: 0; }
.c115-trust-text strong { display: block; font-size: .85rem; font-weight: 700; color: #1c1917; }
.c115-trust-text span { font-size: .75rem; color: #78716c; }

/* ── Section Common ──────────────────────────────────────── */
.c115-section { padding: 4rem 0; }
.c115-section-bg { background: #f5f5f4; }
.c115-section-dark { background: var(--c-header, #0a1628); }
.section-label {
    display: inline-block; font-size: .7rem; font-weight: 700;
    color: var(--c-primary, #f97316); letter-spacing: 1.2px;
    text-transform: uppercase; margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; color: #1c1917; margin-bottom: .5rem; }
.section-sub { color: #57534e; font-size: 1rem; max-width: 600px; }

/* ── Category Grid ───────────────────────────────────────── */
.c115-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.c115-cat-card {
    background: #fff; border: 1px solid #e5e3e1; border-radius: 12px;
    padding: 1.5rem 1.25rem; text-align: center;
    transition: all .25s; cursor: pointer; text-decoration: none; color: inherit;
}
.c115-cat-card:hover {
    border-color: var(--c-primary, #f97316);
    box-shadow: 0 8px 24px rgba(249,115,22,.12);
    transform: translateY(-3px);
}
.c115-cat-icon { font-size: 2rem; margin-bottom: .75rem; color: var(--c-primary, #f97316); }
.c115-cat-name { font-weight: 700; font-size: .95rem; color: #1c1917; margin-bottom: .25rem; }
.c115-cat-count { font-size: .78rem; color: #78716c; }

/* ── Product Cards ───────────────────────────────────────── */
.c115-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.c115-product-card {
    background: #fff; border: 1px solid #e5e3e1; border-radius: 12px;
    overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.c115-product-card:hover {
    border-color: var(--c-primary, #f97316);
    box-shadow: 0 8px 28px rgba(249,115,22,.13);
    transform: translateY(-3px);
}
.c115-product-img { aspect-ratio: 4/3; overflow: hidden; background: #f5f5f4; }
.c115-product-img img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; transition: transform .35s; }
.c115-product-card:hover .c115-product-img img { transform: scale(1.05); }
.c115-product-badge {
    display: inline-block; font-size: .65rem; font-weight: 700; padding: .2rem .55rem;
    border-radius: 4px; background: var(--c-primary, #f97316); color: #fff;
    margin: .75rem .75rem 0;
}
.c115-product-body { padding: .5rem .75rem .75rem; flex: 1; display: flex; flex-direction: column; }
.c115-product-name { font-weight: 600; font-size: .9rem; color: #1c1917; margin-bottom: .35rem; line-height: 1.4; }
.c115-product-model { font-size: .75rem; color: #78716c; font-family: monospace; margin-bottom: .5rem; }
.c115-product-price { font-size: 1.1rem; font-weight: 800; color: var(--c-primary, #f97316); font-family: var(--font-heading); }
.c115-product-price-origin { font-size: .8rem; color: #a8a29e; text-decoration: line-through; }
.c115-product-cta {
    display: flex; gap: .5rem; margin-top: auto; padding-top: .75rem;
    border-top: 1px solid #f5f5f4;
}
.c115-product-cta a {
    flex: 1; text-align: center; font-size: .78rem; font-weight: 600;
    padding: .45rem; border-radius: 6px;
    background: var(--c-primary, #f97316); color: #fff;
    transition: background .2s;
}
.c115-product-cta a:hover { background: var(--c-primary-dark, #ea580c); }
.c115-product-cta a.outline {
    background: transparent; color: var(--c-primary, #f97316);
    border: 1px solid var(--c-primary, #f97316);
}
.c115-product-cta a.outline:hover { background: var(--c-primary, #f97316); color: #fff; }

/* ── Brand logos ─────────────────────────────────────────── */
.c115-brands { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2.5rem; }
.c115-brand-item { opacity: .55; filter: grayscale(1); transition: all .2s; }
.c115-brand-item:hover { opacity: 1; filter: grayscale(0); }
.c115-brand-item img { height: 36px; width: auto; }

/* ── CTA Section ─────────────────────────────────────────── */
.c115-cta {
    background: var(--c-primary, #f97316);
    padding: 3.5rem 0; text-align: center;
}
.c115-cta h2 { color: #fff; font-size: 2rem; margin-bottom: .5rem; }
.c115-cta p { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.05rem; }
.c115-cta-phone { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: #fff; }

/* ── Footer ──────────────────────────────────────────────── */
.c115-footer { background: var(--c-header, #0a1628); color: rgba(255,255,255,.65); padding: 3.5rem 0 1.5rem; }
.c115-footer h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.c115-footer a { color: rgba(255,255,255,.55); font-size: .875rem; display: block; margin-bottom: .4rem; }
.c115-footer a:hover { color: var(--c-primary, #f97316); }
.c115-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; margin-top: 2.5rem; }
.c115-footer-copy { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ── Floating CTA ────────────────────────────────────────── */
.c115-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
    display: flex; flex-direction: column; gap: .6rem; align-items: flex-end;
}
.c115-float-btn {
    display: flex; align-items: center; gap: .5rem;
    padding: .6rem 1.1rem; border-radius: 100px;
    font-weight: 700; font-size: .82rem; color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.c115-float-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.25); color: #fff; }
.c115-float-zalo { background: #0068ff; }
.c115-float-phone { background: var(--c-primary, #f97316); }
.c115-float-zalo img { width: 18px; height: 18px; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ── Single product ──────────────────────────────────────── */
.c115-product-gallery { display: grid; grid-template-columns: 80px 1fr; gap: .75rem; }
.c115-product-thumbs { display: flex; flex-direction: column; gap: .5rem; }
.c115-product-thumb {
    width: 80px; height: 60px; border: 2px solid #e5e3e1; border-radius: 6px;
    overflow: hidden; cursor: pointer; transition: border-color .2s;
}
.c115-product-thumb.active, .c115-product-thumb:hover { border-color: var(--c-primary, #f97316); }
.c115-product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.c115-product-main-img { border: 1px solid #e5e3e1; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.c115-product-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }

.c115-tabs { border-bottom: 2px solid #e5e3e1; display: flex; gap: 0; }
.c115-tab-btn {
    padding: .75rem 1.5rem; font-size: .875rem; font-weight: 600; color: #57534e;
    border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.c115-tab-btn.active { color: var(--c-primary, #f97316); border-bottom-color: var(--c-primary, #f97316); }
.c115-tab-panel { display: none; padding: 1.5rem 0; }
.c115-tab-panel.active { display: block; }

.c115-spec-table { width: 100%; border-collapse: collapse; }
.c115-spec-table tr:nth-child(even) td { background: #fafaf9; }
.c115-spec-table td { padding: .6rem .875rem; font-size: .875rem; border-bottom: 1px solid #f0edec; }
.c115-spec-table td:first-child { font-weight: 600; color: #44403c; width: 35%; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .c115-products-grid { grid-template-columns: repeat(3, 1fr); }
    .c115-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .c115-products-grid { grid-template-columns: repeat(2, 1fr); }
    .c115-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .c115-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .c115-cta-phone { font-size: 1.8rem; }
    .c115-nav { display: none; } /* mobile menu via JS */
    .c115-float-btn span { display: none; }
}
@media (max-width: 480px) {
    .c115-products-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .c115-trust-grid { grid-template-columns: 1fr 1fr; }
    .c115-section { padding: 2.5rem 0; }
}
