/*
 * KTech CMS - Default Theme
 * Base stylesheet: variables, header, footer, navigation, layout shell.
 * Consumes the CSS custom properties emitted by theme_render_css_vars()
 * (core, driven by the admin Theme Customizer) so admin-configured
 * colors/fonts keep working automatically with this theme.
 */

:root {
    /* Fallbacks in case theme_render_css_vars() hasn't set these yet -
       the admin Theme Customizer values always win when present. */
    --theme-primary: #c8102e;
    --theme-secondary: #1a1a1a;
    --theme-header-bg: #ffffff;
    --theme-footer-bg: #1a1a1a;
    --theme-text: #333333;
    --theme-link: #c8102e;
    --theme-button: #c8102e;
    --theme-heading-font: 'Poppins', sans-serif;
    --theme-body-font: 'Inter', sans-serif;

    /* Theme-only extensions (not exposed in the customizer). */
    --theme-gray-dark: #4a4a4a;
    --theme-gray-light: #f4f5f7;
    --theme-white: #ffffff;
    --theme-black: #0d0d0d;
    --theme-radius: 0.75rem;
    --theme-radius-sm: 0.4rem;
    --theme-shadow: 0 0.5rem 1.5rem rgba(13, 13, 13, 0.08);
    --theme-shadow-sm: 0 0.25rem 0.75rem rgba(13, 13, 13, 0.06);
    --theme-transition: all 0.2s ease-in-out;
}

body {
    font-family: var(--theme-body-font);
    color: var(--theme-text);
    background: var(--theme-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-heading-font);
    font-weight: 600;
    color: var(--theme-black);
}

a {
    color: var(--theme-link);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-button);
    color: #fff;
    border: none;
    border-radius: var(--theme-radius-sm);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: var(--theme-transition);
}
.theme-btn:hover {
    filter: brightness(0.9);
    color: #fff;
}
.theme-btn-outline {
    background: transparent;
    color: var(--theme-primary);
    border: 1.5px solid var(--theme-primary);
}
.theme-btn-outline:hover {
    background: var(--theme-primary);
    color: #fff;
}
.theme-btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
}

.theme-section {
    padding: 4rem 0;
}
@media (max-width: 767.98px) {
    .theme-section { padding: 2.5rem 0; }
}

.theme-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow-sm);
    transition: var(--theme-transition);
}
.theme-card:hover {
    box-shadow: var(--theme-shadow);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------------------
   Top contact bar
--------------------------------------------------------------------- */
.theme-topbar {
    background: var(--theme-topbar-bg, var(--theme-black));
    color: #d8d8d8;
    font-size: 0.85rem;
    padding: 0.4rem 0;
}
.theme-topbar a {
    color: #d8d8d8;
}
.theme-topbar a:hover {
    color: var(--theme-primary);
}
.theme-topbar .theme-topbar-contact a {
    margin-right: 1.25rem;
    white-space: nowrap;
}
.theme-topbar .theme-topbar-contact i {
    color: var(--theme-primary);
    margin-right: 0.35rem;
}
.theme-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    margin-left: 0.4rem;
}
.theme-topbar-social a:hover {
    background: var(--theme-primary);
    color: #fff;
}

/* Google Translate: Google's own default widget is mounted off-screen
   (.theme-translate-hidden) and only ever driven programmatically; the
   curated, on-brand dropdown below (.theme-translate) is the only
   translate UI a visitor actually sees. */
.theme-translate-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.theme-translate {
    position: relative;
    display: inline-block;
    margin-left: 0.75rem;
}
.theme-translate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #d8d8d8;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--theme-radius-sm);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.theme-translate-toggle:hover,
.theme-translate-toggle[aria-expanded="true"] {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}
.theme-translate-caret {
    font-size: 0.6rem;
}
.theme-translate-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #fff;
    color: var(--theme-text);
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    min-width: 160px;
    border-radius: var(--theme-radius-sm);
    box-shadow: var(--theme-shadow, 0 0.5rem 1.5rem rgba(0,0,0,.15));
    z-index: 1060;
}
.theme-translate-menu.show {
    display: block;
}
.theme-translate-menu a {
    display: block;
    padding: 0.4rem 1rem;
    color: var(--theme-text);
    font-size: 0.85rem;
}
.theme-translate-menu a:hover {
    background: var(--theme-gray-light, #f4f4f4);
    color: var(--theme-primary);
}
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ---------------------------------------------------------------------
   Main header / navigation
--------------------------------------------------------------------- */
.theme-header {
    background: var(--theme-header-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    z-index: 1040;
}
.theme-header.theme-sticky {
    position: sticky;
    top: 0;
}
.theme-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
}
.theme-logo img {
    max-height: 56px;
    width: auto;
}
.theme-nav {
    flex: 1 1 auto;
}
.theme-nav .navbar-nav {
    gap: 0.25rem;
}
.theme-nav .nav-link {
    font-weight: 600;
    color: var(--theme-black);
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--theme-radius-sm);
    transition: var(--theme-transition);
}
.theme-nav .nav-link:hover,
.theme-nav .nav-link.active {
    color: var(--theme-primary);
    background: var(--theme-gray-light);
}

/* Mega menu */
.theme-megamenu {
    position: static;
}
.theme-megamenu .dropdown-menu {
    width: 100%;
    border: none;
    border-radius: 0 0 var(--theme-radius) var(--theme-radius);
    box-shadow: var(--theme-shadow);
    padding: 1.5rem;
    margin-top: 0;
}
.theme-megamenu-col h6 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--theme-primary);
    border-bottom: 2px solid var(--theme-gray-light);
    padding-bottom: 0.5rem;
    margin-bottom: 0.6rem;
}
.theme-megamenu-col a {
    display: block;
    color: var(--theme-text);
    padding: 0.3rem 0;
    font-size: 0.92rem;
}
.theme-megamenu-col a:hover {
    color: var(--theme-primary);
    padding-left: 0.25rem;
}

/* Header action icons (search / inquiry cart / translate) */
.theme-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.theme-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--theme-gray-light);
    color: var(--theme-black);
    border: none;
    transition: var(--theme-transition);
}
.theme-icon-btn:hover {
    background: var(--theme-primary);
    color: #fff;
}
.theme-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--theme-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.theme-search-panel {
    display: none;
    background: var(--theme-gray-light);
    border-top: 1px solid rgba(0,0,0,.06);
}
.theme-search-panel.show {
    display: block;
}
.theme-search-panel form {
    padding: 1rem 0;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.theme-footer {
    background: var(--theme-footer-bg);
    color: #c9c9c9;
}
.theme-footer a {
    color: #c9c9c9;
}
.theme-footer a:hover {
    color: var(--theme-primary);
}
.theme-footer h6 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
.theme-footer-top {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.theme-footer-bottom {
    padding: 1.1rem 0;
    font-size: 0.85rem;
}
.theme-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    margin-right: 0.4rem;
}
.theme-footer-social a:hover {
    background: var(--theme-primary);
    color: #fff;
}
.theme-footer-links li {
    margin-bottom: 0.5rem;
}
.theme-footer-links a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.4rem;
    color: var(--theme-primary);
}

/* ---------------------------------------------------------------------
   Mobile
--------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .theme-nav .navbar-nav {
        padding: 1rem 0;
    }
    .theme-megamenu .dropdown-menu {
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
    }
    .theme-topbar-contact a:not(:first-child) {
        display: none;
    }
}

/* =======================================================================
   PHASE 2 - Homepage sections
======================================================================= */

/* Scroll-reveal (hand-rolled, no external AOS dependency - see theme.js) */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-aos].theme-aos-in {
    opacity: 1;
    transform: none;
}
[data-aos="fade-up"] { transform: translateY(24px); }
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="zoom-in"] { transform: scale(.92); }
[data-aos].theme-aos-in { transform: none; }

.theme-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--theme-primary);
    margin-bottom: .75rem;
}
.theme-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--theme-primary);
}
.theme-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: .75rem;
}
.theme-section-sub {
    color: var(--theme-gray-dark);
    max-width: 640px;
}
.theme-section-alt {
    background: var(--theme-gray-light);
}
.theme-section-dark {
    background: var(--theme-black);
    color: #d8d8d8;
}
.theme-section-dark h2, .theme-section-dark h3 {
    color: #fff;
}

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.theme-hero {
    position: relative;
    overflow: hidden;
}
.theme-hero .carousel-item {
    height: min(70vh, 640px);
    min-height: 380px;
    background-size: cover;
    background-position: center;
}
.theme-hero .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,13,13,.78) 0%, rgba(13,13,13,.35) 55%, rgba(13,13,13,.15) 100%);
}
.theme-hero-caption {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 620px;
    color: #fff;
    padding: 0 1rem;
}
.theme-hero-caption h1, .theme-hero-caption h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
}
.theme-hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}
.theme-hero .carousel-indicators .active {
    background: var(--theme-primary);
}
.theme-hero .carousel-control-prev,
.theme-hero .carousel-control-next {
    width: 4%;
}

/* ---------------------------------------------------------------------
   Company introduction
--------------------------------------------------------------------- */
.theme-intro-media {
    position: relative;
    border-radius: var(--theme-radius);
    overflow: hidden;
    box-shadow: var(--theme-shadow);
}
.theme-intro-media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ---------------------------------------------------------------------
   Category cards
--------------------------------------------------------------------- */
.theme-cat-card {
    position: relative;
    display: block;
    border-radius: var(--theme-radius);
    overflow: hidden;
    aspect-ratio: 4/5;
    color: #fff;
    box-shadow: var(--theme-shadow-sm);
}
.theme-cat-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.theme-cat-card:hover img {
    transform: scale(1.08);
}
.theme-cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,13,13,0) 40%, rgba(13,13,13,.85) 100%);
}
.theme-cat-card-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 1.25rem;
}
.theme-cat-card-body h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: .25rem;
}
.theme-cat-card-body span {
    font-size: .8rem;
    color: #d8d8d8;
}
.theme-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}

/* ---------------------------------------------------------------------
   Product cards
--------------------------------------------------------------------- */
.theme-prd-card {
    position: relative;
    background: #fff;
    border-radius: var(--theme-radius);
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm);
    transition: var(--theme-transition);
    height: 100%;
}
.theme-prd-card:hover {
    box-shadow: var(--theme-shadow);
    transform: translateY(-4px);
}
.theme-prd-thumb {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--theme-gray-light);
}
.theme-prd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.theme-prd-card:hover .theme-prd-thumb img {
    transform: scale(1.06);
}
.theme-prd-actions {
    position: absolute;
    top: .6rem;
    right: .6rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    opacity: 0;
    transform: translateX(8px);
    transition: var(--theme-transition);
}
.theme-prd-card:hover .theme-prd-actions {
    opacity: 1;
    transform: none;
}
.theme-prd-actions a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--theme-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--theme-shadow-sm);
    font-size: .85rem;
}
.theme-prd-actions a:hover {
    background: var(--theme-primary);
    color: #fff;
}
.theme-prd-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--theme-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .25rem .6rem;
    border-radius: 999px;
}
.theme-prd-body {
    padding: 1rem 1.1rem 1.2rem;
}
.theme-prd-body .theme-prd-cat {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--theme-primary);
}
.theme-prd-body h3 {
    font-size: 1rem;
    margin: .25rem 0 .35rem;
}
.theme-prd-body h3 a {
    color: var(--theme-black);
}
.theme-prd-body h3 a:hover {
    color: var(--theme-primary);
}

/* ---------------------------------------------------------------------
   Manufacturing timeline
--------------------------------------------------------------------- */
.theme-timeline {
    position: relative;
}
.theme-timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0,0,0,.08);
}
@media (max-width: 767.98px) {
    .theme-timeline::before {
        top: 0; bottom: 0; left: 28px; right: auto; width: 2px; height: auto;
    }
}
.theme-timeline-step {
    position: relative;
    text-align: center;
    padding-top: .5rem;
}
@media (max-width: 767.98px) {
    .theme-timeline-step {
        text-align: left;
        padding-left: 4rem;
        margin-bottom: 2rem;
    }
}
.theme-timeline-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--theme-black);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}
@media (max-width: 767.98px) {
    .theme-timeline-num {
        position: absolute;
        left: 0; top: 0;
        margin: 0;
    }
}
.theme-timeline-step:hover .theme-timeline-num {
    background: var(--theme-primary);
}

/* ---------------------------------------------------------------------
   Why choose us / statistics
--------------------------------------------------------------------- */
.theme-why-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--theme-radius-sm);
    background: rgba(200,16,46,.08);
    color: var(--theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.theme-stats {
    background: var(--theme-black);
    color: #fff;
    border-radius: var(--theme-radius);
    padding: 2.5rem 1rem;
}
.theme-stat-item {
    text-align: center;
}
.theme-stat-num {
    font-family: var(--theme-heading-font);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--theme-primary);
    display: block;
}
.theme-stat-label {
    font-size: .85rem;
    color: #c9c9c9;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---------------------------------------------------------------------
   Certifications / Brands strips
--------------------------------------------------------------------- */
.theme-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
}
.theme-strip::-webkit-scrollbar {
    height: 6px;
}
.theme-strip::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 999px;
}
.theme-strip-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 180px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--theme-radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--theme-shadow-sm);
}
.theme-strip-item img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: var(--theme-transition);
}
.theme-strip-item:hover img {
    filter: none;
    opacity: 1;
}

/* ---------------------------------------------------------------------
   Inquiry CTA banner
--------------------------------------------------------------------- */
.theme-cta {
    position: relative;
    background: linear-gradient(120deg, var(--theme-black) 0%, #2a2a2a 100%);
    color: #fff;
    border-radius: var(--theme-radius);
    padding: 3rem;
    overflow: hidden;
}
.theme-cta::before {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(200,16,46,.25);
}
.theme-cta h2 { color: #fff; }

/* ---------------------------------------------------------------------
   Testimonials
--------------------------------------------------------------------- */
.theme-testimonial {
    background: #fff;
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow-sm);
    padding: 1.75rem;
    height: 100%;
}
.theme-testimonial-stars {
    color: #f5a623;
    font-size: .85rem;
    margin-bottom: .75rem;
}
.theme-testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
}
.theme-testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.theme-testimonial-author strong {
    display: block;
    font-size: .92rem;
}
.theme-testimonial-author span {
    font-size: .78rem;
    color: var(--theme-gray-dark);
}

/* ---------------------------------------------------------------------
   News cards
--------------------------------------------------------------------- */
.theme-news-card {
    background: #fff;
    border-radius: var(--theme-radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--theme-shadow-sm);
    height: 100%;
}
.theme-news-date {
    font-size: .78rem;
    color: var(--theme-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.theme-news-body {
    padding: 1.25rem;
}

/* ---------------------------------------------------------------------
   Newsletter
--------------------------------------------------------------------- */
.theme-newsletter {
    background: var(--theme-gray-light);
    border-radius: var(--theme-radius);
    padding: 2.5rem;
}
.theme-newsletter form {
    display: flex;
    gap: .6rem;
    max-width: 480px;
}
@media (max-width: 575.98px) {
    .theme-newsletter form { flex-direction: column; }
}

/* ---------------------------------------------------------------------
   Homepage Gallery preview (CSS-columns masonry, no JS layout needed)
--------------------------------------------------------------------- */
.theme-gallery-masonry {
    columns: 4;
    column-gap: 1rem;
}
.theme-gallery-masonry-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--theme-radius-sm);
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm);
}
.theme-gallery-masonry-item:nth-child(3n+1) img { aspect-ratio: 3/4; }
.theme-gallery-masonry-item:nth-child(3n+2) img { aspect-ratio: 1/1; }
.theme-gallery-masonry-item:nth-child(3n+3) img { aspect-ratio: 4/3; }
.theme-gallery-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.theme-gallery-masonry-item:hover img {
    transform: scale(1.05);
}
@media (max-width: 991.98px) {
    .theme-gallery-masonry { columns: 3; }
}
@media (max-width: 575.98px) {
    .theme-gallery-masonry { columns: 2; column-gap: .6rem; }
    .theme-gallery-masonry-item { margin-bottom: .6rem; }
}

/* ---------------------------------------------------------------------
   Product Catalogues
--------------------------------------------------------------------- */
.theme-catalogue-card {
    background: #fff;
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--theme-transition);
}
.theme-catalogue-card:hover {
    box-shadow: var(--theme-shadow);
    transform: translateY(-4px);
}
.theme-catalogue-cover {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.theme-catalogue-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gray-light);
    color: var(--theme-gray-dark);
    font-size: 2.5rem;
}
.theme-catalogue-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------------------------------------
   WhatsApp floating button
--------------------------------------------------------------------- */
.theme-whatsapp-float {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(37,211,102,.45);
    z-index: 1050;
    animation: theme-pulse 2.4s infinite;
}
.theme-whatsapp-float:hover {
    color: #fff;
    filter: brightness(1.05);
}
@keyframes theme-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.theme-inquiry-float {
    position: fixed;
    left: 22px;
    bottom: 96px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    z-index: 1049;
    animation: theme-inquiry-bounce 2.6s ease-in-out infinite;
}
.theme-inquiry-float:hover {
    color: #fff;
    filter: brightness(1.08);
}
@keyframes theme-inquiry-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@media (max-width: 575.98px) {
    .theme-whatsapp-float { left: 16px; bottom: 16px; }
    .theme-whatsapp-popup { left: 16px; }
    .theme-inquiry-float { left: 16px; bottom: 86px; width: 46px; height: 46px; font-size: 1.15rem; }
}
.theme-whatsapp-popup {
    position: fixed;
    left: 22px;
    bottom: 92px;
    width: 290px;
    background: #fff;
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow);
    z-index: 1050;
    overflow: hidden;
    display: none;
}
.theme-whatsapp-popup.show {
    display: block;
}
.theme-whatsapp-popup-head {
    background: #25d366;
    color: #fff;
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.theme-whatsapp-popup-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.theme-whatsapp-popup-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(255,255,255,.6);
}
.theme-whatsapp-popup-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid #fff;
}
.theme-whatsapp-popup-head-text {
    flex: 1;
    line-height: 1.2;
}
.theme-whatsapp-popup-head-text .theme-wa-company {
    font-weight: 600;
    font-size: .92rem;
}
.theme-whatsapp-popup-head-text .theme-wa-online {
    font-size: .72rem;
    opacity: .9;
}
.theme-whatsapp-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    align-self: flex-start;
    opacity: .85;
}
.theme-whatsapp-popup-close:hover {
    opacity: 1;
}
.theme-whatsapp-popup-body {
    padding: 1rem;
    font-size: .9rem;
}

/* =======================================================================
   PHASE 3 - Products Listing / Product Detail / Search
======================================================================= */
.theme-zoom-frame {
    overflow: hidden;
    border-radius: var(--theme-radius);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--theme-shadow-sm);
    aspect-ratio: 1/1;
}
.theme-zoom-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.theme-zoom-frame:hover img {
    transform: scale(1.35);
}
.theme-prd-thumb-select {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--theme-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--theme-transition);
}
.theme-prd-thumb-select:hover {
    opacity: .85;
}
.theme-prd-thumb-select.active {
    border-color: var(--theme-primary);
}
.breadcrumb {
    font-size: .85rem;
}
.breadcrumb-item a {
    color: var(--theme-gray-dark);
}
.breadcrumb-item.active {
    color: var(--theme-primary);
}
.list-group-item.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* =======================================================================
   PHASE 3 - CMS Page rich-text content (TinyMCE-authored HTML)
======================================================================= */
.theme-cms-content {
    font-size: 1.02rem;
    line-height: 1.75;
}
.theme-cms-content h1, .theme-cms-content h2, .theme-cms-content h3,
.theme-cms-content h4, .theme-cms-content h5, .theme-cms-content h6 {
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}
.theme-cms-content p { margin-bottom: 1.1rem; }
.theme-cms-content img { border-radius: var(--theme-radius-sm); margin: .5rem 0; }
.theme-cms-content ul, .theme-cms-content ol { margin-bottom: 1.1rem; padding-left: 1.4rem; }
.theme-cms-content table { width: 100%; margin-bottom: 1.1rem; border-collapse: collapse; }
.theme-cms-content table td, .theme-cms-content table th { border: 1px solid rgba(0,0,0,.08); padding: .5rem .75rem; }
.theme-cms-content blockquote {
    border-left: 3px solid var(--theme-primary);
    padding-left: 1rem;
    color: var(--theme-gray-dark);
    font-style: italic;
    margin: 1.25rem 0;
}

/* =======================================================================
   PHASE 3 - Gallery lightbox
======================================================================= */
.theme-lightbox-item {
    cursor: zoom-in;
}
.theme-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,13,13,.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    flex-direction: column;
}
.theme-lightbox-overlay.show {
    display: flex;
}
.theme-lightbox-img {
    max-width: 88vw;
    max-height: 82vh;
    border-radius: var(--theme-radius-sm);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.5);
}
.theme-lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    font-size: .9rem;
    text-align: center;
}
.theme-lightbox-close,
.theme-lightbox-prev,
.theme-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.theme-lightbox-close:hover,
.theme-lightbox-prev:hover,
.theme-lightbox-next:hover {
    background: var(--theme-primary);
}
.theme-lightbox-close {
    top: 20px;
    right: 20px;
}
.theme-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.theme-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width: 575.98px) {
    .theme-lightbox-prev, .theme-lightbox-next { width: 38px; height: 38px; font-size: 1.3rem; }
}
