/* Dentelo theme - header, footer, hero, cards, forms, floating widgets */

/* ---------- Top bar ---------- */
.dt-topbar {
    background: var(--dt-topbar-bg);
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    padding: .5rem 0;
}
.dt-topbar a { color: rgba(255,255,255,.75); }
.dt-topbar a:hover { color: #fff; }
.dt-topbar .dt-topbar-item { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1.5rem; }
.dt-topbar .dt-topbar-item i { color: var(--dt-primary); }
.dt-topbar .dt-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: .4rem;
}
.dt-topbar .dt-social a:hover { background: var(--dt-primary); color: #fff; }

/* ---------- Header ---------- */
.dt-header {
    background: var(--dt-header-bg, #fff);
    border-bottom: 1px solid var(--dt-border);
    position: relative;
    z-index: 1040;
    transition: box-shadow .25s ease, transform .3s ease;
}
.dt-header.dt-sticky { position: sticky; top: 0; }
.dt-header.dt-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.dt-header.dt-hide { transform: translateY(-100%); }

.dt-header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.5rem; }
.dt-logo img { max-height: 52px; width: auto; }

.dt-nav { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.dt-nav .nav-link {
    color: var(--dt-secondary);
    font-weight: 600;
    font-size: .95rem;
    padding: .6rem .9rem !important;
    border-radius: var(--dt-radius-sm);
}
.dt-nav .nav-link:hover, .dt-nav .nav-link.active { color: var(--dt-primary); background: var(--dt-primary-light); }
.dt-nav .dropdown-menu { border: 0; box-shadow: var(--dt-shadow); border-radius: var(--dt-radius-sm); padding: .5rem; margin-top: .5rem; }
.dt-nav .dropdown-item { border-radius: var(--dt-radius-sm); padding: .5rem .75rem; font-weight: 500; }
.dt-nav .dropdown-item:hover { background: var(--dt-primary-light); color: var(--dt-primary-dark); }

/* Mega menu (categories) */
.dt-megamenu { position: static; }
.dt-megamenu .dropdown-menu {
    left: 0; right: 0; width: 100%;
    padding: 1.5rem;
}
.dt-megamenu .dropdown-menu.show {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .5rem 2rem;
}
.dt-megamenu .dt-mega-col-title {
    font-family: var(--dt-heading-font);
    font-weight: 700;
    font-size: .9rem;
    color: var(--dt-primary-dark);
    margin-bottom: .5rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--dt-primary-light);
}
.dt-megamenu .dt-mega-col a {
    display: block;
    padding: .3rem 0;
    color: var(--dt-ink);
    font-size: .9rem;
}
.dt-megamenu .dt-mega-col a:hover { color: var(--dt-primary); padding-left: .25rem; }

.dt-header-actions { display: flex; align-items: center; gap: .5rem; }
.dt-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--dt-surface-alt); color: var(--dt-secondary);
    position: relative; border: none;
}
.dt-icon-btn:hover { background: var(--dt-primary); color: #fff; }
.dt-icon-btn .dt-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--dt-primary); color: #fff;
    font-size: .65rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.dt-nav-toggle { display: none; }

@media (max-width: 991.98px) {
    .dt-nav-toggle { display: inline-flex; }
    .dt-nav-desktop { display: none; }
}

/* Search overlay */
.dt-search-overlay {
    position: fixed; inset: 0; background: rgba(16,19,20,.96);
    z-index: 1080; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.dt-search-overlay.dt-open { opacity: 1; visibility: visible; }
.dt-search-overlay form { width: min(680px, 90vw); }
.dt-search-overlay input {
    width: 100%; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,.3);
    color: #fff; font-size: 1.8rem; padding: .75rem .25rem; font-family: var(--dt-heading-font);
}
.dt-search-overlay input::placeholder { color: rgba(255,255,255,.4); }
.dt-search-overlay input:focus { outline: none; border-color: var(--dt-primary); }
.dt-search-close {
    position: absolute; top: 2rem; right: 2rem;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* Mobile offcanvas nav */
.dt-offcanvas .offcanvas-header { border-bottom: 1px solid var(--dt-border); }
.dt-offcanvas .accordion-button { font-weight: 600; }
.dt-offcanvas a.dt-off-link { display: block; padding: .75rem 0; font-weight: 600; color: var(--dt-secondary); border-bottom: 1px solid var(--dt-border); }

/* ---------- Hero ---------- */
.dt-hero { position: relative; overflow: hidden; background: var(--dt-secondary); }
.dt-hero .swiper { height: min(88vh, 760px); min-height: 480px; }
.dt-hero-slide { position: relative; width: 100%; height: 100%; }
.dt-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dt-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10,14,15,.86) 0%, rgba(10,14,15,.55) 45%, rgba(10,14,15,.25) 75%);
}
.dt-hero-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 640px;
    color: #fff;
    padding: 2rem 0;
}
.dt-hero-content .dt-eyebrow { color: #7fe0d1; }
.dt-hero-content .dt-eyebrow::before { background: #7fe0d1; }
.dt-hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; color: #fff; margin-bottom: 1rem; }
.dt-hero-title .dt-accent { color: #7fe0d1; }
.dt-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 1.75rem; }
.dt-hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.dt-hero .swiper-pagination { text-align: left; left: max(1.5rem, calc((100% - 1290px)/2)); bottom: 2rem !important; width: auto; }
.dt-hero .swiper-pagination-bullet { background: #fff; opacity: .5; width: 10px; height: 10px; }
.dt-hero .swiper-pagination-bullet-active { opacity: 1; background: var(--dt-primary); width: 28px; border-radius: 6px; }
.dt-hero-nav {
    position: absolute; z-index: 3; bottom: 2rem; right: max(1.5rem, calc((100% - 1290px)/2));
    display: flex; gap: .6rem;
}
.dt-hero-nav button {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center;
}
.dt-hero-nav button:hover { background: var(--dt-primary); border-color: var(--dt-primary); }
.dt-hero-scroll {
    position: absolute; z-index: 3; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.7); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.dt-hero-scroll .dt-scroll-line { width: 1px; height: 34px; background: rgba(255,255,255,.35); overflow: hidden; }
.dt-hero-scroll .dt-scroll-line::after {
    content: ''; display: block; width: 100%; height: 40%; background: #fff;
    animation: dtScrollLine 1.8s ease-in-out infinite;
}
@keyframes dtScrollLine { 0% { transform: translateY(-100%);} 100% { transform: translateY(250%);} }

/* ---------- Trust strip ---------- */
.dt-trust-strip { background: var(--dt-surface-alt); padding: 1.75rem 0; border-bottom: 1px solid var(--dt-border); }
.dt-trust-item { display: flex; align-items: center; gap: .75rem; }
.dt-trust-item i { font-size: 1.6rem; color: var(--dt-primary); }
.dt-trust-item strong { display: block; font-family: var(--dt-heading-font); font-size: 1.1rem; color: var(--dt-secondary); }
.dt-trust-item span { font-size: .82rem; color: var(--dt-ink-soft); }

/* ---------- Category cards ---------- */
.dt-cat-card {
    position: relative; display: block; border-radius: var(--dt-radius); overflow: hidden;
    aspect-ratio: 4 / 5; background: var(--dt-secondary);
}
.dt-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dt-cat-card:hover img { transform: scale(1.08); }
.dt-cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,14,15,.88) 0%, rgba(10,14,15,.15) 60%); }
.dt-cat-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; z-index: 2; color: #fff; }
.dt-cat-card-body h3 { color: #fff; font-size: 1.15rem; margin-bottom: .25rem; }
.dt-cat-card-body span { font-size: .82rem; color: rgba(255,255,255,.75); }
.dt-cat-card-arrow {
    position: absolute; top: 1rem; right: 1rem; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center; color: #fff;
    transition: background .25s ease, transform .25s ease;
}
.dt-cat-card:hover .dt-cat-card-arrow { background: var(--dt-primary); transform: rotate(45deg); }

/* ---------- Product cards ---------- */
.dt-product-card {
    background: var(--dt-surface); border: 1px solid var(--dt-border); border-radius: var(--dt-radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.dt-product-card:hover { box-shadow: var(--dt-shadow); transform: translateY(-4px); border-color: transparent; }
.dt-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--dt-surface-alt); overflow: hidden; }
.dt-card-img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; transition: transform .4s ease; }
.dt-product-card:hover .dt-card-img { transform: scale(1.06); }
.dt-card-art { position: absolute; top: .6rem; left: .6rem; background: #fff; border: 1px solid var(--dt-border); font-size: .7rem; font-weight: 700; color: var(--dt-ink-soft); padding: .2rem .55rem; border-radius: 50rem; }
.dt-card-quick {
    position: absolute; inset: auto .6rem .6rem auto; display: flex; gap: .4rem;
    opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.dt-product-card:hover .dt-card-quick { opacity: 1; transform: translateY(0); }
.dt-card-quick button, .dt-card-quick a {
    width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--dt-border);
    display: flex; align-items: center; justify-content: center; color: var(--dt-secondary);
}
.dt-card-quick button:hover, .dt-card-quick a:hover { background: var(--dt-primary); color: #fff; border-color: var(--dt-primary); }
.dt-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.dt-card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dt-primary); font-weight: 700; margin-bottom: .25rem; }
.dt-card-title { font-size: 1rem; margin-bottom: .35rem; line-height: 1.35; }
.dt-card-title a { color: var(--dt-secondary); }
.dt-card-title a:hover { color: var(--dt-primary); }
.dt-card-desc { font-size: .85rem; color: var(--dt-ink-soft); margin-bottom: .75rem; flex: 1; }
.dt-card-actions { display: flex; gap: .5rem; margin-top: auto; }
.dt-card-actions .dt-btn { flex: 1; padding: .55rem .75rem; font-size: .85rem; }

/* ---------- Filters / listing toolbar ---------- */
.dt-filter-bar { background: var(--dt-surface-alt); border: 1px solid var(--dt-border); border-radius: var(--dt-radius); padding: 1.25rem; }
.dt-filter-bar .form-select, .dt-filter-bar .form-control { border-radius: var(--dt-radius-sm); }
.dt-sidebar-cat { list-style: none; padding: 0; margin: 0; }
.dt-sidebar-cat li a { display: flex; justify-content: space-between; padding: .55rem .25rem; color: var(--dt-ink); border-bottom: 1px solid var(--dt-border); font-size: .92rem; }
.dt-sidebar-cat li a:hover, .dt-sidebar-cat li a.active { color: var(--dt-primary); font-weight: 600; }
.dt-sidebar-cat .badge { background: var(--dt-primary-light); color: var(--dt-primary-dark); font-weight: 600; }

/* ---------- Pagination ---------- */
.dt-pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.dt-pagination a, .dt-pagination span {
    min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--dt-radius-sm); border: 1px solid var(--dt-border); color: var(--dt-secondary); font-weight: 600; font-size: .9rem;
}
.dt-pagination a:hover { border-color: var(--dt-primary); color: var(--dt-primary); }
.dt-pagination .active { background: var(--dt-primary); border-color: var(--dt-primary); color: #fff; }

/* ---------- Product detail ---------- */
.dt-gallery-main { border: 1px solid var(--dt-border); border-radius: var(--dt-radius); overflow: hidden; background: var(--dt-surface-alt); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.dt-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; cursor: zoom-in; }
.dt-gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.dt-gallery-thumbs a { width: 74px; height: 74px; border-radius: var(--dt-radius-sm); border: 2px solid var(--dt-border); overflow: hidden; padding: 4px; background: var(--dt-surface-alt); }
.dt-gallery-thumbs a img { width: 100%; height: 100%; object-fit: contain; }
.dt-gallery-thumbs a.active, .dt-gallery-thumbs a:hover { border-color: var(--dt-primary); }
.dt-spec-table { width: 100%; border-collapse: collapse; }
.dt-spec-table tr { border-bottom: 1px solid var(--dt-border); }
.dt-spec-table td { padding: .65rem 0; font-size: .92rem; }
.dt-spec-table td:first-child { color: var(--dt-ink-soft); width: 40%; font-weight: 600; }
.dt-contact-strip { display: flex; flex-wrap: wrap; gap: .75rem; }
.dt-contact-strip a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid var(--dt-border); border-radius: var(--dt-radius-sm); font-size: .88rem; font-weight: 600; color: var(--dt-secondary); }
.dt-contact-strip a:hover { border-color: var(--dt-primary); color: var(--dt-primary); }

/* ---------- Manufacturing / Why choose / Stats ---------- */
.dt-mfg-step { text-align: center; padding: 1.75rem 1rem; }
.dt-mfg-step .dt-mfg-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--dt-primary-light); color: var(--dt-primary-dark); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 1.1rem; }
.dt-mfg-step h4 { font-size: 1.02rem; }
.dt-why-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.dt-why-item .dt-why-icon { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--dt-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.dt-stat { text-align: center; }
.dt-stat .dt-stat-num { font-family: var(--dt-heading-font); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--dt-primary); }
.dt-stat span { color: var(--dt-ink-soft); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Gallery / Certifications / Catalogues ---------- */
.dt-gallery-tile { position: relative; border-radius: var(--dt-radius-sm); overflow: hidden; aspect-ratio: 4/3; display: block; }
.dt-gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dt-gallery-tile:hover img { transform: scale(1.08); }
.dt-gallery-tile .dt-zoom { position: absolute; inset: 0; background: rgba(10,14,15,.35); opacity: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; transition: opacity .25s ease; }
.dt-gallery-tile:hover .dt-zoom { opacity: 1; }
.dt-catalogue-card { border: 1px solid var(--dt-border); border-radius: var(--dt-radius); overflow: hidden; background: #fff; height: 100%; }
.dt-catalogue-cover { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.dt-catalogue-body { padding: 1.1rem; }

/* ---------- Testimonials ---------- */
.dt-testimonial { background: #fff; border: 1px solid var(--dt-border); border-radius: var(--dt-radius); padding: 1.75rem; height: 100%; }
.dt-testimonial .dt-stars { color: #f5a623; margin-bottom: .75rem; }
.dt-testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--dt-primary-light); color: var(--dt-primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- Forms ---------- */
.dt-form .form-control, .dt-form .form-select { border-radius: var(--dt-radius-sm); border-color: var(--dt-border); padding: .7rem .9rem; }
.dt-form .form-control:focus, .dt-form .form-select:focus { border-color: var(--dt-primary); box-shadow: 0 0 0 .2rem var(--dt-primary-light); }
.dt-form label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.dt-alert-success { background: var(--dt-primary-light); color: var(--dt-primary-dark); border: 1px solid var(--dt-primary); border-radius: var(--dt-radius-sm); padding: 1rem 1.25rem; }
.dt-alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f2b8b5; border-radius: var(--dt-radius-sm); padding: 1rem 1.25rem; }

/* ---------- Footer ---------- */
.dt-footer { background: var(--dt-footer-bg); color: rgba(255,255,255,.7); }
.dt-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.dt-footer a { color: rgba(255,255,255,.65); }
.dt-footer a:hover { color: var(--dt-primary); }
.dt-footer-links { list-style: none; padding: 0; margin: 0; }
.dt-footer-links li { margin-bottom: .6rem; font-size: .9rem; }
.dt-footer-top { padding: 4rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.dt-footer-bottom { padding: 1.5rem 0; font-size: .85rem; }
.dt-footer-contact li { display: flex; gap: .6rem; margin-bottom: .9rem; font-size: .9rem; }
.dt-footer-contact i { color: var(--dt-primary); margin-top: .2rem; }
.dt-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: .5rem; }
.dt-footer-social a:hover { background: var(--dt-primary); color: #fff; }
.dt-newsletter-form { display: flex; gap: .5rem; }
.dt-newsletter-form input { flex: 1; border-radius: var(--dt-radius-sm); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; padding: .7rem .9rem; }
.dt-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }

/* ---------- Floating widgets ---------- */
.dt-float-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1050; display: flex; flex-direction: column; gap: .75rem; align-items: flex-end; }
.dt-float-btn {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: 1.4rem; color: #fff; border: none;
}
.dt-float-whatsapp { background: #25d366; }
.dt-float-inquiry { background: var(--dt-primary); }
.dt-float-top { width: 46px; height: 46px; background: var(--dt-secondary); font-size: 1.1rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
.dt-float-top.dt-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Floating panels (WhatsApp / Inquiry) ---------- */
.dt-float-panel {
    position: fixed; right: 1.25rem; bottom: 6.25rem; z-index: 1055;
    width: min(360px, calc(100vw - 2.5rem));
    background: #fff; border-radius: var(--dt-radius); box-shadow: 0 20px 50px rgba(0,0,0,.25);
    overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    max-height: min(80vh, 640px); display: flex; flex-direction: column;
}
.dt-float-panel.dt-open { opacity: 1; visibility: visible; transform: none; }
.dt-float-panel-head { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; background: var(--dt-surface-alt); border-bottom: 1px solid var(--dt-border); position: relative; }
.dt-float-panel-head img { max-height: 32px; }
.dt-float-panel-close { position: absolute; right: .75rem; top: .75rem; background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--dt-ink-soft); }
.dt-float-panel-body { padding: 1.25rem; overflow-y: auto; }
.dt-mstep { display: none; }
.dt-mstep.active { display: block; }
.dt-mstep label { display: block; }
.dt-mstep .form-control, .dt-mstep .form-select { margin-bottom: 0; }
.dt-mstep-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; }
.dt-mstep-dots { display: flex; gap: .4rem; justify-content: center; margin-bottom: 1rem; }
.dt-mstep-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--dt-border); }
.dt-mstep-dots span.active { background: var(--dt-primary); width: 22px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.dt-divider { width: 60px; height: 3px; background: var(--dt-primary); border-radius: 2px; }
.dt-ratio-16-9 { aspect-ratio: 16/9; }
