/* ====== Cửa Nhôm Kính Tam Kỳ - Custom Styles ====== */

:root {
    --primary: #0d6efd;
    --dark: #1a1a2e;
    --glass-blue: rgba(135, 206, 250, 0.3);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0 80px;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.min-vh-75 {
    min-height: 65vh;
}

/* ---- Hero Door Frame (decorative) ---- */
.hero-door-frame {
    display: flex;
    justify-content: center;
    align-items: center;
}

.door-display {
    width: 220px;
    height: 320px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.door-display .door-panel {
    flex: 1;
    background: var(--glass-blue);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
}

.door-display .door-panel::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    border-radius: 1px;
}

.door-handle {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translateX(-50%);
    width: 6px;
    height: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.door-display.door-xingfa::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
    z-index: 2;
}

/* ---- Product Cards ---- */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* ---- Door SVG Preview in Calculator ---- */
.door-preview-container {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    position: relative;
}

.door-svg {
    max-width: 250px;
    max-height: 300px;
    width: 100%;
}

.door-type-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d6efd;
    color: white;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}

/* ---- Floating Buttons ---- */
.zalo-float, .phone-float {
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s;
    animation: float-pulse 2s ease-in-out infinite;
}

.fb-float {
    bottom: 155px;
    right: 25px;
    background: #1877f2;
}

.zalo-float {
    bottom: 90px;
    right: 25px;
    background: #0068ff;
}

.phone-float {
    bottom: 25px;
    right: 25px;
    background: #28a745;
}

.fb-float:hover { transform: scale(1.1); color: white; }

.zalo-float:hover, .phone-float:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 4px 25px rgba(0,0,0,0.5); }
}

/* ---- Quote Calculator ---- */
#calcResult {
    border-left: 4px solid #198754;
}

/* ---- Admin ---- */
.table td, .table th {
    vertical-align: middle;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 60px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .door-preview-container {
        margin-bottom: 15px;
    }
    .zalo-float, .phone-float {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .fb-float { bottom: 130px; right: 15px; }
    .zalo-float { bottom: 75px; right: 15px; }
    .phone-float { bottom: 20px; right: 15px; }
}

/* ---- Print styles ---- */
@media print {
    .navbar, .zalo-float, .phone-float, footer, .btn, .card-footer {
        display: none !important;
    }
    body {
        font-size: 12pt;
    }
}
