/*
Theme Name: BesCool Custom Theme (Donpos Style)
Theme URI: https://bescoolcn.com
Author: Accio
Description: A professional B2B industrial refrigeration theme inspired by Donpos.com.
Version: 1.1
Text Domain: bescool
*/

:root {
    --donpos-green: #127439;
    --donpos-blue: #0068B7;
    --donpos-bg: #FFFFFF;
    --donpos-text: #333333;
    --donpos-gray: #F7F7F7;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F7F7F7;
}

body { 
    font-family: 'Inter', 'Noto Sans SC', sans-serif; 
    background-color: var(--donpos-bg); 
    color: var(--donpos-text);
    line-height: 1.6;
    top: 0 !important;
    -webkit-font-smoothing: antialiased;
}

/* Keep content visible even when third-party animation CDNs fail. */
[data-aos],
[data-aos][data-aos],
[data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

.section-padding { padding: 100px 0; }

.btn-primary {
    background-color: var(--donpos-green);
    color: white !important;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: 0.3s;
    display: inline-block;
}
.btn-primary:hover { 
    background-color: var(--donpos-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,104,183,0.1);
}

/* Sticky Sidebar Widget */
.sticky-contact {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 1000; display: flex; flex-direction: column; gap: 2px;
}
.sticky-item {
    background: white; width: 50px; height: 50px; display: flex; 
    align-items: center; justify-content: center; border: 1px solid #eee;
    cursor: pointer; transition: 0.3s; color: var(--donpos-text);
    padding: 0;
}
.sticky-item:hover { background: var(--donpos-green); color: white; }

/* Language Bar */
.lang-bar {
    background: #f8f8f8; border-bottom: 1px solid #eee; padding: 8px 0;
    font-size: 12px; color: #666;
}

/* Entrance Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Navigation */
.nav-link { font-weight: 700; font-size: 13px; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-link:hover { color: var(--donpos-green); }

/* Table Styles */
.tech-table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 13px; }
.tech-table th { background: #f8f8f8; color: #666; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 15px 20px; border: 1px solid #eee; text-align: left; }
.tech-table td { padding: 15px 20px; border: 1px solid #eee; transition: 0.3s; }
.tech-table tr:hover td { background: #fdfdfd; }
.tech-highlight { color: var(--donpos-green); font-weight: 700; }
.status-badge { background: #E8F5E9; color: #2E7D32; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }

/* Top Bar */
.top-bar {
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 12px;
    height: 36px;
}

.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #f1f1f1;
}

.nav-link.active {
    color: var(--donpos-green);
}

.language-panel {
    max-width: 100vw;
}

.language-menu {
    max-height: 78vh;
    overflow-y: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
    transition: 0.2s;
}

.lang-option:hover {
    background: #f9fafb;
    border-color: #f3f4f6;
}

.lang-option span {
    width: 24px;
    color: #d1d5db;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.lang-option strong {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.footer-icon {
    color: #6b7280;
    flex: 0 0 auto;
    width: 34px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Floating Chat Widget */
.chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--donpos-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: all 0.3s;
    font-size: 24px;
}

.chat-launcher:hover {
    background: var(--donpos-blue);
    transform: scale(1.1);
}

.chat-launcher .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    background: rgba(18,116,57,0.15);
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chat-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 9998;
    width: 340px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.chat-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-panel-header {
    background: var(--donpos-green);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-panel-header .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.chat-title {
    font-size: 15px;
    font-weight: 600;
}

.chat-subtitle {
    font-size: 11px;
    opacity: 0.8;
}

.chat-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
}

.chat-close:hover {
    opacity: 1;
}

.chat-panel-body {
    padding: 20px;
}

.chat-panel-body input,
.chat-panel-body textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 10px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.chat-panel-body input:focus,
.chat-panel-body textarea:focus {
    border-color: var(--donpos-green);
}

.chat-panel-body textarea {
    resize: none;
    height: 80px;
}

.chat-panel-body button {
    width: 100%;
    background: var(--donpos-green);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-panel-body button:hover {
    background: var(--donpos-blue);
}

/* Swiper custom styles */
.swiper-hero {
    height: 650px;
}

.swiper-hero.has-fallback-slider .swiper-wrapper {
    position: relative;
    height: 100%;
}

.swiper-hero.has-fallback-slider .swiper-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.swiper-hero.has-fallback-slider .swiper-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.swiper-hero .swiper-pagination-bullet {
    width: 40px;
    height: 3px;
    border-radius: 0;
    background: rgba(255,255,255,0.4);
}

.swiper-hero .swiper-pagination-bullet-active {
    background: var(--donpos-green);
}

.swiper-hero .swiper-button-next,
.swiper-hero .swiper-button-prev {
    color: white;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.swiper-hero .swiper-button-next:hover,
.swiper-hero .swiper-button-prev:hover {
    opacity: 1;
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
