@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --neon-violet: #6366f1;
    --neon-cyan: #0284c7;
    --neon-purple: #8b5cf6;
    --neon-blue: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-glass: #e2e8f0;
    --border-cyan-glass: rgba(2, 132, 199, 0.3);
    --glow-violet: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
    --glow-cyan: 0 10px 20px -5px rgba(2, 132, 199, 0.3);
    --radius-card: 18px;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: var(--text-primary);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    background-attachment: scroll;
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
}

/* Bright Glassmorphism Card Utilities */
.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.12);
    transform: translateY(-2px);
}

.glass-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    padding: 10px 0;
}

.glass-nav .container {
    max-width: 1320px;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.35);
    flex-shrink: 0;
}

.nav-link-custom {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 7px 16px !important;
    border-radius: 20px;
    white-space: nowrap !important;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
}

.nav-link-custom:hover {
    color: #0284c7 !important;
    background-color: #f1f5f9;
}

.nav-link-custom.active {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.btn-nav-action {
    border-radius: 20px !important;
    padding: 7px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    height: 38px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-search-box {
    position: relative;
    width: 190px;
    flex-shrink: 0;
}

.nav-search-box .form-control {
    border-radius: 20px;
    padding-left: 34px;
    padding-right: 12px;
    font-size: 0.82rem;
    height: 38px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.nav-search-box .form-control:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.nav-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

/* Typography & Bright Accents */
.text-neon-violet {
    color: var(--neon-violet);
    font-weight: 600;
}

.text-neon-cyan {
    color: var(--neon-cyan);
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #0f172a 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cyber Bright Buttons */
.btn-cyber-primary {
    background: linear-gradient(135deg, var(--neon-violet) 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    box-shadow: var(--glow-violet);
    transition: all 0.3s ease;
}

.btn-cyber-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, var(--neon-violet) 100%);
    color: #fff;
    box-shadow: 0 12px 25px -4px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-cyber-cyan {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #0369a1 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    box-shadow: var(--glow-cyan);
    transition: all 0.3s ease;
}

.btn-cyber-cyan:hover {
    background: linear-gradient(135deg, #0369a1 0%, var(--neon-cyan) 100%);
    color: #ffffff;
    box-shadow: 0 12px 25px -4px rgba(2, 132, 199, 0.5);
    transform: translateY(-2px);
}

.btn-cyber-outline {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cyber-outline:hover {
    background: #f1f5f9;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Badges */
.badge-cyber {
    background: rgba(99, 102, 241, 0.1);
    color: var(--neon-violet);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-cyber-cyan {
    background: rgba(2, 132, 199, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(2, 132, 199, 0.3);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Nav & Dropdowns */
.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
}

.dropdown-menu-glass {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    padding: 10px;
}

.dropdown-menu-glass .dropdown-item {
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu-glass .dropdown-item:hover {
    background: #f1f5f9;
    color: var(--neon-cyan);
}

/* Forms & Inputs */
.form-control-glass {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control-glass:focus {
    background: #ffffff;
    border-color: var(--neon-cyan);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

.form-control-glass::placeholder {
    color: var(--text-muted);
}

/* Carousel Custom Styling */
.cyber-carousel-item {
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.cyber-carousel-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 60%, rgba(255, 255, 255, 0.4) 100%);
    padding: 60px 40px;
    border-radius: var(--radius-card);
    color: #0f172a;
}

/* Product & Blog Cards 1:1 Square Image Specs */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: var(--radius-card);
}

.product-img-wrapper,
.blog-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background-color: #ffffff;
}

.product-img-wrapper img,
.blog-img-wrapper img,
.product-card img,
.blog-card img,
.img-500,
.img-square-11 {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    background-color: #ffffff;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img,
.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

/* Slider best sellers */
.slider-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) transparent;
    padding-bottom: 15px;
}

.slider-container::-webkit-scrollbar {
    height: 6px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 10px;
}

.best-seller-item {
    width: 310px;
}

@media (max-width: 767.98px) {
    .best-seller-item {
        width: calc(50% - 6px);
        min-width: 150px;
    }

    .product-img-wrapper,
    .blog-img-wrapper {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-img-wrapper img,
    .blog-img-wrapper img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-img-wrapper .badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .product-card h5 {
        font-size: 0.88rem;
    }
}

/* Cyber Blue Footer Styling */
.footer-cyber {
    background: linear-gradient(135deg, #0b192c 0%, #1e3a8a 50%, #0c1831 100%);
    border-top: 3px solid #0284c7;
    margin-top: 80px;
    padding: 60px 0 25px 0;
    color: #e2e8f0;
    position: relative;
}

.footer-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.footer-cyber h4,
.footer-cyber h5,
.footer-cyber h6 {
    color: #ffffff !important;
}

.footer-cyber p,
.footer-cyber span,
.footer-cyber .text-secondary,
.footer-cyber .text-dark {
    color: #cbd5e1 !important;
}

.footer-cyber a.text-secondary,
.footer-cyber a.text-dark {
    color: #e2e8f0 !important;
    transition: all 0.2s ease;
}

.footer-cyber a.text-secondary:hover,
.footer-cyber a.text-dark:hover {
    color: #38bdf8 !important;
}

.footer-cyber .border-light {
    border-color: rgba(56, 189, 248, 0.25) !important;
}

.footer-cyber .badge-cyber {
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.footer-cyber .badge-cyber:hover {
    background: #0284c7;
    color: #ffffff;
}

.footer-cyber .btn-cyber-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}

.footer-cyber .btn-cyber-outline:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.footer-cyber .text-muted {
    color: #94a3b8 !important;
}

.footer-map-container iframe {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Modal Styling */
.modal-content-glass {
    background: #ffffff;
    backdrop-filter: blur(25px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: var(--text-primary);
}

/* Tables in Admin */
.table-glass {
    color: var(--text-primary);
}

.table-glass th {
    background: #f1f5f9;
    color: var(--neon-cyan);
    border-bottom: 2px solid #cbd5e1;
    padding: 14px;
}

.table-glass td {
    border-bottom: 1px solid #e2e8f0;
    padding: 14px;
    vertical-align: middle;
}

/* Floating WhatsApp Chatbox */
.wa-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wa-pulse 2s infinite;
}

.wa-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wa-badge-notify {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Floating Direct Phone Call Button */
.phone-floating-btn {
    position: fixed;
    bottom: 95px;
    right: 27px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
    cursor: pointer;
    z-index: 1050;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: phone-pulse 2.5s infinite;
}

.phone-floating-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.65);
}

@keyframes phone-pulse {
    0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(2, 132, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.wa-chatbox {
    position: fixed;
    bottom: 160px;
    right: 25px;
    width: 340px;
    max-width: calc(100vw - 30px);
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    z-index: 1050;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: wa-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-chatbox.show {
    display: flex;
}

@keyframes wa-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wa-chatbox-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    padding: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-chatbox-body {
    padding: 16px;
    max-height: 340px;
    overflow-y: auto;
    background: #f8fafc;
}

.wa-msg-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px 14px 14px 2px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.88rem;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wa-quick-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--neon-cyan);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    padding: 6px 12px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.wa-quick-btn:hover {
    background: var(--neon-cyan);
    color: #ffffff;
    border-color: var(--neon-cyan);
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination .page-item .page-link {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--neon-cyan);
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pagination .page-item:hover .page-link {
    background: #f1f5f9;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--text-muted);
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 25px rgba(15, 23, 42, 0.08);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 75px;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #0284c7;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    color: #0284c7;
}

/* Floating Center Action Button for Home */
.mobile-nav-item-center {
    position: relative;
    top: -15px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #ffffff;
}

.mobile-nav-item-center i {
    font-size: 1.55rem;
    margin: 0;
    color: #ffffff;
}

.mobile-nav-item-center:hover {
    transform: translateY(-3px) scale(1.08);
}

@media (max-width: 991.98px) {
    .glass-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1030 !important;
    }
    body {
        padding-top: 72px !important;
        padding-bottom: 75px !important;
    }
    .wa-floating-btn {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .phone-floating-btn {
        bottom: 140px;
        right: 17px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .wa-chatbox {
        bottom: 195px;
    }
    .offcanvas-bottom-custom {
        height: 85vh !important;
        border-radius: 24px 24px 0 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.15) !important;
    }
}
